wxWidgets/tests/strings
Vadim Zeitlin 874dbd3a4a Allow calling wxStrchr() with a narrow string and wide character.
Calls to wxStrchr(char-string, wide-char) would previously fail if wide
character couldn't be converted to a single character in the current locale
encoding. Change it to simply return NULL in this case as it's a safe and
useful generalization: a narrow string will never contain a wide character not
representable in the current locale.

Add wxUniChar::GetAsChar() to help with implementing this.

Closes #11487.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-28 14:37:03 +00:00
..
crt.cpp Allow calling wxStrchr() with a narrow string and wide character. 2009-11-28 14:37:03 +00:00
iostream.cpp don't compile the test in the build configurations where it's not supported (trying to fix buildbot OS X build) 2008-05-30 21:59:24 +00:00
stdstrings.cpp Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
strings.cpp Output the extracted number from wxString::ToXXX() even if it returns false. 2009-08-30 17:25:19 +00:00
tokenizer.cpp Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
unichar.cpp Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
unicode.cpp Fix another off-by-1 bug in wxMBConv::ToWChar(). 2009-09-26 13:31:27 +00:00
vararg.cpp Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
vsnprintf.cpp Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00