.TH "KJS::UCharReference" kde3 "11 Jun 2005" "Version Version 3.4.1" "kjs Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KJS::UCharReference \- Dynamic reference to a string character.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <ustring.h>\fP
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBUCharReference\fP & \fBoperator=\fP (\fBUChar\fP c)"
.br
.ti -1c
.RI "\fBUCharReference\fP & \fBoperator=\fP (char c)"
.br
.ti -1c
.RI "unsigned short \fBunicode\fP () const "
.br
.ti -1c
.RI "unsigned char \fBlow\fP () const "
.br
.ti -1c
.RI "unsigned char \fBhigh\fP () const "
.br
.ti -1c
.RI "\fBUChar\fP \fBtoLower\fP () const "
.br
.ti -1c
.RI "\fBUChar\fP \fBtoUpper\fP () const "
.br
.in -1c
.SS "Friends"

.in +1c
.ti -1c
.RI "class \fBUString\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
Dynamic reference to a string character. 

\fBUCharReference\fP is the dynamic counterpart of \fBUChar\fP. It's used when characters retrieved via index from a \fBUString\fP are used in an assignment expression (and therefore can't be treated as being const): 
.PP
.nf
 UString s('hello world');
 s[0] = 'H';

.fi
.PP
.PP
If that sounds confusing your best bet is to simply forget about the existence of this class and treat is as being identical to \fBUChar\fP. 
.PP
Definition at line 119 of file ustring.h.
.SH "Member Function Documentation"
.PP 
.SS "\fBUCharReference\fP & UCharReference::operator= (\fBUChar\fP c)"
.PP
Set the referenced character to c. 
.PP
Definition at line 148 of file ustring.cpp.
.PP
References KJS::UString::detach(), and KJS::UString::rep.
.SS "\fBUCharReference\fP& KJS::UCharReference::operator= (char c)\fC [inline]\fP"
.PP
Same operator as above except the argument that it takes. 
.PP
Definition at line 130 of file ustring.h.
.SS "unsigned short KJS::UCharReference::unicode () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
Unicode value. 
.RE
.PP

.PP
Definition at line 134 of file ustring.h.
.SS "unsigned char KJS::UCharReference::low () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
Lower byte. 
.RE
.PP

.PP
Definition at line 138 of file ustring.h.
.SS "unsigned char KJS::UCharReference::high () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
Higher byte. 
.RE
.PP

.PP
Definition at line 142 of file ustring.h.
.SS "\fBUChar\fP KJS::UCharReference::toLower () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
Character converted to lower case. 
.RE
.PP

.PP
Definition at line 146 of file ustring.h.
.SS "\fBUChar\fP KJS::UCharReference::toUpper () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
Character converted to upper case. 
.RE
.PP

.PP
Definition at line 150 of file ustring.h.
.PP
References KJS::UChar::toUpper().

.SH "Author"
.PP 
Generated automatically by Doxygen for kjs Library from the source code.
