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

kjs

  • KJS
  • UCharReference
Public Member Functions | Friends | List of all members
KJS::UCharReference Class Reference

#include <ustring.h>

Public Member Functions

UCharReference & operator= (UChar c)
 
UCharReference & operator= (char c)
 
unsigned short unicode () const
 
unsigned char low () const
 
unsigned char high () const
 
UChar toLower () const
 
UChar toUpper () const
 

Friends

class UString
 

Detailed Description

Dynamic reference to a string character.

UCharReference is the dynamic counterpart of UChar. It's used when characters retrieved via index from a UString are used in an assignment expression (and therefore can't be treated as being const):

UString s("hello world");
s[0] = 'H';
KJS::UString
Unicode string class.
Definition: ustring.h:189

If that sounds confusing your best bet is to simply forget about the existence of this class and treat is as being identical to UChar.

Definition at line 119 of file ustring.h.

Member Function Documentation

◆ high()

unsigned char KJS::UCharReference::high ( ) const
inline
Returns
Higher byte.

Definition at line 142 of file ustring.h.

◆ low()

unsigned char KJS::UCharReference::low ( ) const
inline
Returns
Lower byte.

Definition at line 138 of file ustring.h.

◆ operator=() [1/2]

UCharReference & KJS::UCharReference::operator= ( char  c)
inline

Same operator as above except the argument that it takes.

Definition at line 130 of file ustring.h.

◆ operator=() [2/2]

UCharReference & UCharReference::operator= ( UChar  c)

Set the referenced character to c.

Definition at line 153 of file ustring.cpp.

◆ toLower()

UChar KJS::UCharReference::toLower ( ) const
inline
Returns
Character converted to lower case.

Definition at line 146 of file ustring.h.

◆ toUpper()

UChar KJS::UCharReference::toUpper ( ) const
inline
Returns
Character converted to upper case.

Definition at line 150 of file ustring.h.

◆ unicode()

unsigned short KJS::UCharReference::unicode ( ) const
inline
Returns
Unicode value.

Definition at line 134 of file ustring.h.

Friends And Related Function Documentation

◆ UString

friend class UString
friend

Definition at line 120 of file ustring.h.


The documentation for this class 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.