wxUniChar Class Reference
[Data Structures]

#include <wx/unichar.h>


Detailed Description

This class represents a single Unicode character.

It can be converted to and from char or wchar_t and implements commonly used character operations.

Library:  wxBase

Category:  Data Structures

Public Types

typedef wxUint32 value_type
 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.

Public Member Functions

 wxUniChar ()
 Default ctor.
 wxUniChar (int c)
 wxUniChar (unsigned int c)
 wxUniChar (long int c)
 wxUniChar (unsigned long int c)
 wxUniChar (short int c)
 wxUniChar (unsigned short int c)
 wxUniChar (const wxUniCharRef &c)
value_type GetValue () const
 Returns Unicode code point value of the character.
bool IsAscii () const
 Returns true if the character is an ASCII character (i.e.
 wxUniChar (char c)
 Create the character from 8bit character value encoded in the current locale's charset.
 wxUniChar (unsigned char c)
 Create the character from 8bit character value encoded in the current locale's charset.
 operator char () const
 Conversions to char and wchar_t types: all of those are needed to be able to pass wxUniChars to various standard narrow and wide character functions.
 operator unsigned char () const
 Conversions to char and wchar_t types: all of those are needed to be able to pass wxUniChars to various standard narrow and wide character functions.
 operator wchar_t () const
 Conversions to char and wchar_t types: all of those are needed to be able to pass wxUniChars to various standard narrow and wide character functions.
 operator int () const
 Conversions to char and wchar_t types: all of those are needed to be able to pass wxUniChars to various standard narrow and wide character functions.
 operator unsigned int () const
 Conversions to char and wchar_t types: all of those are needed to be able to pass wxUniChars to various standard narrow and wide character functions.
 operator long int () const
 Conversions to char and wchar_t types: all of those are needed to be able to pass wxUniChars to various standard narrow and wide character functions.
 operator unsigned long int () const
 Conversions to char and wchar_t types: all of those are needed to be able to pass wxUniChars to various standard narrow and wide character functions.
 operator short int () const
 Conversions to char and wchar_t types: all of those are needed to be able to pass wxUniChars to various standard narrow and wide character functions.
 operator unsigned short int () const
 Conversions to char and wchar_t types: all of those are needed to be able to pass wxUniChars to various standard narrow and wide character functions.
wxUniCharoperator= (const wxUniChar &c)
 Assignment operators.
wxUniCharoperator= (const wxUniCharRef &c)
 Assignment operators.
wxUniCharoperator= (char c)
 Assignment operators.
wxUniCharoperator= (unsigned char c)
 Assignment operators.
wxUniCharoperator= (wchar_t c)
 Assignment operators.
wxUniCharoperator= (int c)
 Assignment operators.
wxUniCharoperator= (unsigned int c)
 Assignment operators.
wxUniCharoperator= (long int c)
 Assignment operators.
wxUniCharoperator= (unsigned long int c)
 Assignment operators.
wxUniCharoperator= (short int c)
 Assignment operators.
wxUniCharoperator= (unsigned short int c)
 Assignment operators.

List of all members.


Member Typedef Documentation

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).


Constructor & Destructor Documentation

wxUniChar::wxUniChar (  ) 

Default ctor.

wxUniChar::wxUniChar ( char  c  ) 

Create the character from 8bit character value encoded in the current locale's charset.

wxUniChar::wxUniChar ( unsigned char  c  ) 

Create the character from 8bit character value encoded in the current locale's charset.

wxUniChar::wxUniChar ( int  c  ) 

wxUniChar::wxUniChar ( unsigned int  c  ) 

wxUniChar::wxUniChar ( long int  c  ) 

wxUniChar::wxUniChar ( unsigned long int  c  ) 

wxUniChar::wxUniChar ( short int  c  ) 

wxUniChar::wxUniChar ( unsigned short int  c  ) 

wxUniChar::wxUniChar ( const wxUniCharRef c  ) 


Member Function Documentation

value_type wxUniChar::GetValue (  )  const

Returns Unicode code point value of the character.

bool wxUniChar::IsAscii (  )  const

Returns true if the character is an ASCII character (i.e.

if its value is less than 128).

wxUniChar::operator char (  )  const

Conversions to char and wchar_t types: all of those are needed to be able to pass wxUniChars to various standard narrow and wide character functions.

wxUniChar::operator int (  )  const

Conversions to char and wchar_t types: all of those are needed to be able to pass wxUniChars to various standard narrow and wide character functions.

wxUniChar::operator long int (  )  const

Conversions to char and wchar_t types: all of those are needed to be able to pass wxUniChars to various standard narrow and wide character functions.

wxUniChar::operator short int (  )  const

Conversions to char and wchar_t types: all of those are needed to be able to pass wxUniChars to various standard narrow and wide character functions.

wxUniChar::operator unsigned char (  )  const

Conversions to char and wchar_t types: all of those are needed to be able to pass wxUniChars to various standard narrow and wide character functions.

wxUniChar::operator unsigned int (  )  const

Conversions to char and wchar_t types: all of those are needed to be able to pass wxUniChars to various standard narrow and wide character functions.

wxUniChar::operator unsigned long int (  )  const

Conversions to char and wchar_t types: all of those are needed to be able to pass wxUniChars to various standard narrow and wide character functions.

wxUniChar::operator unsigned short int (  )  const

Conversions to char and wchar_t types: all of those are needed to be able to pass wxUniChars to various standard narrow and wide character functions.

wxUniChar::operator wchar_t (  )  const

Conversions to char and wchar_t types: all of those are needed to be able to pass wxUniChars to various standard narrow and wide character functions.

wxUniChar& wxUniChar::operator= ( unsigned short int  c  ) 

Assignment operators.

wxUniChar& wxUniChar::operator= ( short int  c  ) 

Assignment operators.

wxUniChar& wxUniChar::operator= ( unsigned long int  c  ) 

Assignment operators.

wxUniChar& wxUniChar::operator= ( long int  c  ) 

Assignment operators.

wxUniChar& wxUniChar::operator= ( unsigned int  c  ) 

Assignment operators.

wxUniChar& wxUniChar::operator= ( int  c  ) 

Assignment operators.

wxUniChar& wxUniChar::operator= ( wchar_t  c  ) 

Assignment operators.

wxUniChar& wxUniChar::operator= ( unsigned char  c  ) 

Assignment operators.

wxUniChar& wxUniChar::operator= ( char  c  ) 

Assignment operators.

wxUniChar& wxUniChar::operator= ( const wxUniCharRef c  ) 

Assignment operators.

wxUniChar& wxUniChar::operator= ( const wxUniChar c  ) 

Assignment operators.



wxWidgets logo

[ top ]