• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kjs
 

kjs

  • KJS
  • UChar
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
KJS::UChar Struct Reference

#include <ustring.h>

Public Member Functions

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

Public Attributes

unsigned short uc
 

Static Public Attributes

static UChar null
 

Detailed Description

Unicode character.

UChar represents a 16 bit Unicode character. It's internal data representation is compatible to XChar2b and TQChar. 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

◆ UChar() [1/6]

KJS::UChar::UChar ( )
inline

Construct a character with uninitialized value.

Definition at line 99 of file ustring.h.

◆ UChar() [2/6]

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

Definition at line 101 of file ustring.h.

◆ UChar() [3/6]

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

Definition at line 102 of file ustring.h.

◆ UChar() [4/6]

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 100 of file ustring.h.

◆ UChar() [5/6]

KJS::UChar::UChar ( unsigned short  u)
inline

Construct a character with the given value.

Parameters
u16 bit Unicode value

Definition at line 103 of file ustring.h.

◆ UChar() [6/6]

KJS::UChar::UChar ( const UCharReference &  c)
inline

Definition at line 160 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 73 of file ustring.h.

◆ low()

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

Definition at line 77 of file ustring.h.

◆ toLower()

UChar UChar::toLower ( ) const
Returns
The character converted to lower case.

Definition at line 134 of file ustring.cpp.

◆ toUpper()

UChar UChar::toUpper ( ) const
Returns
The character converted to upper case.

Definition at line 144 of file ustring.cpp.

◆ unicode()

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

Definition at line 81 of file ustring.h.

Member Data Documentation

◆ null

UChar UChar::null
static

A static instance of UChar(0).

Definition at line 94 of file ustring.h.

◆ uc

unsigned short KJS::UChar::uc

Definition at line 96 of file ustring.h.


The documentation for this struct was generated from the following files:
  • ustring.h
  • ustring.cpp

kjs

Skip menu "kjs"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kjs

Skip menu "kjs"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for kjs by doxygen 1.9.4
This website is maintained by Timothy Pearson.