*/
wxString(const wxString& stringSrc);
+ /**
+ Construct a string consisting of @a nRepeat copies of ch.
+ */
+ wxString(wxUniChar ch, size_t nRepeat = 1);
+
+ /**
+ Construct a string consisting of @a nRepeat copies of ch.
+ */
+ wxString(wxUniCharRef ch, size_t nRepeat = 1);
+
+ /**
+ Construct a string consisting of @a nRepeat copies of ch
+ converted to Unicode using the current locale encoding.
+ */
+ wxString(char ch, size_t nRepeat = 1);
+
+ /**
+ Construct a string consisting of @a nRepeat copies of ch.
+ */
+ wxString(wchar_t ch, size_t nRepeat = 1);
/**
Constructs a string from the string literal @a psz using
{
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;
//@{
/**
- 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);