X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8ef2a553af8ab0d44d4817ee33273cd540efb5ce..62960a2c6e9c54720126a7207fa47e9e539f6040:/interface/wx/unichar.h?ds=sidebyside diff --git a/interface/wx/unichar.h b/interface/wx/unichar.h index 479c44679e..4866c1c11d 100644 --- a/interface/wx/unichar.h +++ b/interface/wx/unichar.h @@ -19,21 +19,21 @@ class wxUniChar { public: /** - This is not wchar_t on purpose, it needs to represent the entire - Unicode code points range and wchar_t may be too small for that - (e.g. on Win32 where wchar_t* is encoded in UTF-16). + A type capable of holding any Unicode code point. + We do not use wchar_t as it cannot do the job on Win32, + where wchar_t is a 16-bit type (wchar_t* is encoded using UTF-16 on Win32). */ typedef wxUint32 value_type; /** Default ctor. */ - wxUniChar() + wxUniChar(); //@{ /** - Create the character from 8bit character value encoded in the current - locale's charset. + Create a character from the 8-bit character value @a c using the + current locale’s encoding. */ wxUniChar(char c); wxUniChar(unsigned char c); @@ -54,7 +54,7 @@ public: value_type GetValue() const; /** - Returns true if the character is an ASCII character. + Returns true if the character is an ASCII character (i.e. if its value is less than 128). */ bool IsAscii() const; @@ -64,15 +64,15 @@ public: able to pass wxUniChars to various standard narrow and wide character functions. */ - operator char() const { return To8bit(m_value); } - operator unsigned char() const { return (unsigned char)To8bit(m_value); } - operator wchar_t() const { return (wchar_t)m_value; } - operator int() const { return (int)m_value; } - operator unsigned int() const { return (unsigned int)m_value; } - operator long int() const { return (long int)m_value; } - operator unsigned long int() const { return (unsigned long)m_value; } - operator short int() const { return (short int)m_value; } - operator unsigned short int() const { return (unsigned short int)m_value; } + operator char() const; + operator unsigned char() const; + operator wchar_t() const; + operator int() const; + operator unsigned int() const; + operator long int() const; + operator unsigned long int() const; + operator short int() const; + operator unsigned short int() const; //@} //@{