# class UCharReference | Dynamic reference to a string character. More...
Full name | `KJS::UCharReference`
Definition | `#include <ustring.h>`
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- 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

## Detailed Description

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 existance of this class and treat is as being identical to UChar.

UCharReference& operator= (UChar c) | ### operator=

Set the referenced character to c.

UCharReference& operator= (char c) | ### operator=

Same operator as above except the argument that it takes.

unsigned short unicode () | ### unicode

[const]

Returns: Unicode value.

unsigned char& low () | ### low

[const]

Returns: Lower byte.

unsigned char& high () | ### high

[const]

Returns: Higher byte.

UChar toLower () | ### toLower

[const]

Returns: Character converted to lower case.

UChar toUpper () | ### toUpper

[const]

Returns: Character converted to upper case.

Generated by: root@i386.ports.openbsd.org on Wed Apr 25 13:58:56 2001, using kdoc 2.0a53.