Add conversions to/from long long to wxUniChar.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 19 May 2013 12:38:12 +0000 (12:38 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 19 May 2013 12:38:12 +0000 (12:38 +0000)
commit622bc15f1105916107b140884c3693639ec30d0f
tree503082b63f2f5658b6ba724880cdddd1d098c0b2
parent15df2e476b8a8708ea63baa1c328acac2cdcd812
Add conversions to/from long long to wxUniChar.

Allow conversions to/from long long and unsigned long long values in wxUniChar
for consistency with the other integral types.

Also make the code shorter by using helper wxDO_FOR_INT_TYPES() and
wxDO_FOR_CHAR_INT_TYPES() macros to avoid duplicating the same code for all of
the integral types and having to handle wchar_t (and wxLongLong_t now)
specially because sometimes we may need to overload on it and sometimes not.

Finally, add more tests to check that all the wxUniChar methods compile and
work with all the different types.

Closes #15206.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/defs.h
include/wx/unichar.h
interface/wx/unichar.h
tests/strings/unichar.cpp