KJS

#include <ustring.h>

Public Member Functions

 UChar ()
 
 UChar (char u)
 
 UChar (unsigned char h, unsigned char l)
 
 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

◆ UChar() [1/3]

KJS::UChar::UChar ( )
inline

Construct a character with uninitialized value.

Definition at line 115 of file ustring.h.

◆ UChar() [2/3]

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.

◆ UChar() [3/3]

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

◆ high()

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

Definition at line 91 of file ustring.h.

◆ low()

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

Definition at line 99 of file ustring.h.

◆ unicode()

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-2023 The KDE developers.
Generated on Mon May 8 2023 03:51:05 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.