Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KJS::UChar Struct Reference

Unicode character. More...

#include <ustring.h>

List of all members.

Public Methods

 UChar ()
 UChar (unsigned char h, unsigned char l)
 UChar (unsigned short u)
unsigned char high () const
unsigned char low () const
unsigned short unicode () const
UChar toLower () const
UChar toUpper () const

Static Public Attributes

UChar null


Detailed Description

Unicode character.

UChar represents a 16 bit Unicode character. It's internal data representation is compatible to XChar2b and QChar. It's therefore possible to exchange data with X and Qt with shallow copies.

Definition at line 51 of file ustring.h.


Constructor & Destructor Documentation

KJS::UChar::UChar   [inline]
 

Construct a character with value 0.

Definition at line 103 of file ustring.h.

KJS::UChar::UChar unsigned char    h,
unsigned char    l
[inline]
 

Construct a character with the value denoted by the arguments.

Parameters:
h  higher byte
l  lower byte

Definition at line 104 of file ustring.h.

KJS::UChar::UChar unsigned short    u [inline]
 

Construct a character with the given value.

Parameters:
u  16 bit Unicode value

Definition at line 105 of file ustring.h.


Member Function Documentation

unsigned char KJS::UChar::high   const [inline]
 

Returns:
The higher byte of the character.

Definition at line 71 of file ustring.h.

unsigned char KJS::UChar::low   const [inline]
 

Returns:
The lower byte of the character.

Definition at line 75 of file ustring.h.

UChar KJS::UChar::toLower  
 

Returns:
The character converted to lower case.

Referenced by KJS::UCharReference::toLower().

UChar KJS::UChar::toUpper  
 

Returns:
The character converted to upper case.

Referenced by KJS::UCharReference::toUpper().

unsigned short KJS::UChar::unicode   const [inline]
 

Returns:
the 16 bit Unicode value of the character

Definition at line 79 of file ustring.h.

Referenced by KJS::UCharReference::unicode().


Member Data Documentation

UChar KJS::UChar::null [static]
 

A static instance of UChar(0).

Definition at line 92 of file ustring.h.


The documentation for this struct was generated from the following file:
Generated on Wed Aug 13 23:30:34 2003 for kdelibs by doxygen1.2.18