filters

Swinder::UCharReference Class Reference

#include <ustring.h>

List of all members.


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';

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 108 of file kspread/excel/sidewinder/ustring.h.


Public Member Functions

UCharReferenceoperator= (UChar c)
UCharReferenceoperator= (char c)
unsigned short unicode () const
unsigned char low () const
unsigned char high () const

Friends

class UString

Member Function Documentation

UCharReference & UCharReference::operator= ( UChar  c  ) 

Set the referenced character to c.

Definition at line 46 of file kspread/excel/sidewinder/ustring.cpp.

UCharReference& Swinder::UCharReference::operator= ( char  c  )  [inline]

Same operator as above except the argument that it takes.

Definition at line 119 of file kspread/excel/sidewinder/ustring.h.

unsigned short Swinder::UCharReference::unicode (  )  const [inline]

Returns:
Unicode value.

Definition at line 123 of file kspread/excel/sidewinder/ustring.h.

unsigned char Swinder::UCharReference::low (  )  const [inline]

Returns:
Lower byte.

Definition at line 127 of file kspread/excel/sidewinder/ustring.h.

unsigned char Swinder::UCharReference::high (  )  const [inline]

Returns:
Higher byte.

Definition at line 131 of file kspread/excel/sidewinder/ustring.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys