Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Bug: AString<B>::ReverseFind broken for wchar
Re: Bug: AString<B>::ReverseFind broken for wchar [message #42258 is a reply to message #42257] Sun, 02 March 2014 18:15 Go to previous messageGo to previous message
hans is currently offline  hans
Messages: 44
Registered: March 2006
Location: Germany
Member
Similar bug is in new code of string::Find():

Please change in
template <class tchar>
force_inline bool svo_memeq(const tchar *a, const tchar *b, int len)


the second line
		return memcmp(a, b, len) == 0;

to
		return memcmp(a, b, len*sizeof(tchar)) == 0;


Thanks,
Hans
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: To get xml errors from LoadFromXML
Next Topic: String should implement the Boyer Moore algo
Goto Forum:
  


Current Time: Wed May 15 01:14:16 CEST 2024

Total time taken to generate the page: 0.02512 seconds