KJS

#include <ustring.h>

Public Member Functions

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

Public Attributes

unsigned short uc
 

Detailed Description

Unicode character.

UChar represents a 16 bit Unicode character. Its 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 70 of file ustring.h.

Constructor & Destructor Documentation

KJS::UChar::UChar ( )
inline

Construct a character with uninitialized value.

Definition at line 115 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
hhigher byte
llower byte

Definition at line 116 of file ustring.h.

KJS::UChar::UChar ( char  u)
inline

Construct a character with the given value.

Parameters
u16 bit Unicode value

Definition at line 117 of file ustring.h.

Member Function Documentation

unsigned char KJS::UChar::high ( ) const
inline
Returns
The higher byte of the character.

Definition at line 91 of file ustring.h.

unsigned char KJS::UChar::low ( ) const
inline
Returns
The lower byte of the character.

Definition at line 99 of file ustring.h.

unsigned short KJS::UChar::unicode ( ) const
inline
Returns
the 16 bit Unicode value of the character

Definition at line 107 of file ustring.h.


The documentation for this struct was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue May 26 2020 23:05:12 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.