\section{KJS::UChar\-Reference Class Reference}
\label{classKJS_1_1UCharReference}\index{KJS::UCharReference@{KJS::UCharReference}}
Dynamic reference to a string character.  


{\tt \#include $<$ustring.h$>$}

Collaboration diagram for KJS::UChar\-Reference:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=89pt]{classKJS_1_1UCharReference__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf UChar\-Reference} \& {\bf operator=} ({\bf UChar} c)
\begin{CompactList}\small\item\em Set the referenced character to c. \item\end{CompactList}\item 
{\bf UChar\-Reference} \& {\bf operator=} (char c)
\begin{CompactList}\small\item\em Same operator as above except the argument that it takes. \item\end{CompactList}\item 
unsigned short {\bf unicode} () const 
\item 
unsigned char {\bf low} () const 
\item 
unsigned char {\bf high} () const 
\item 
{\bf UChar} {\bf to\-Lower} () const 
\item 
{\bf UChar} {\bf to\-Upper} () const 
\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf UString}\label{classKJS_1_1UCharReference_n0}

\end{CompactItemize}


\subsection{Detailed Description}
Dynamic reference to a string character. 

{\bf UChar\-Reference}{\rm (p.\,\pageref{classKJS_1_1UCharReference})} is the dynamic counterpart of {\bf UChar}{\rm (p.\,\pageref{structKJS_1_1UChar})}. It's used when characters retrieved via index from a {\bf UString}{\rm (p.\,\pageref{classKJS_1_1UString})} are used in an assignment expression (and therefore can't be treated as being const): \small\begin{alltt}
 {\bf UString}{\rm (p.\,\pageref{classKJS_1_1UString})} s("hello world");
 s[0] = 'H';
 \end{alltt}\normalsize 


If that sounds confusing your best bet is to simply forget about the existance of this class and treat is as being identical to {\bf UChar}{\rm (p.\,\pageref{structKJS_1_1UChar})}. 



Definition at line 121 of file ustring.h.

\subsection{Member Function Documentation}
\index{KJS::UCharReference@{KJS::UChar\-Reference}!operator=@{operator=}}
\index{operator=@{operator=}!KJS::UCharReference@{KJS::UChar\-Reference}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf UChar\-Reference} \& UChar\-Reference::operator= ({\bf UChar} {\em c})}\label{classKJS_1_1UCharReference_a0}


Set the referenced character to c. 



Definition at line 148 of file ustring.cpp.

References KJS::UString::detach(), and KJS::UString::rep.

Referenced by operator=().\index{KJS::UCharReference@{KJS::UChar\-Reference}!operator=@{operator=}}
\index{operator=@{operator=}!KJS::UCharReference@{KJS::UChar\-Reference}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf UChar\-Reference}\& KJS::UChar\-Reference::operator= (char {\em c})\hspace{0.3cm}{\tt  [inline]}}\label{classKJS_1_1UCharReference_a1}


Same operator as above except the argument that it takes. 



Definition at line 132 of file ustring.h.

References operator=().\index{KJS::UCharReference@{KJS::UChar\-Reference}!unicode@{unicode}}
\index{unicode@{unicode}!KJS::UCharReference@{KJS::UChar\-Reference}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}unsigned short KJS::UChar\-Reference::unicode () const\hspace{0.3cm}{\tt  [inline]}}\label{classKJS_1_1UCharReference_a2}


\begin{Desc}
\item[Returns:]Unicode value. \end{Desc}


Definition at line 136 of file ustring.h.

References KJS::UChar::unicode().\index{KJS::UCharReference@{KJS::UChar\-Reference}!low@{low}}
\index{low@{low}!KJS::UCharReference@{KJS::UChar\-Reference}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}unsigned char KJS::UChar\-Reference::low () const\hspace{0.3cm}{\tt  [inline]}}\label{classKJS_1_1UCharReference_a3}


\begin{Desc}
\item[Returns:]Lower byte. \end{Desc}


Definition at line 140 of file ustring.h.

References KJS::UChar::uc.\index{KJS::UCharReference@{KJS::UChar\-Reference}!high@{high}}
\index{high@{high}!KJS::UCharReference@{KJS::UChar\-Reference}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}unsigned char KJS::UChar\-Reference::high () const\hspace{0.3cm}{\tt  [inline]}}\label{classKJS_1_1UCharReference_a4}


\begin{Desc}
\item[Returns:]Higher byte. \end{Desc}


Definition at line 144 of file ustring.h.

References KJS::UChar::uc.\index{KJS::UCharReference@{KJS::UChar\-Reference}!toLower@{toLower}}
\index{toLower@{toLower}!KJS::UCharReference@{KJS::UChar\-Reference}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf UChar} KJS::UChar\-Reference::to\-Lower () const\hspace{0.3cm}{\tt  [inline]}}\label{classKJS_1_1UCharReference_a5}


\begin{Desc}
\item[Returns:]Character converted to lower case. \end{Desc}


Definition at line 148 of file ustring.h.

References KJS::UChar::to\-Lower().\index{KJS::UCharReference@{KJS::UChar\-Reference}!toUpper@{toUpper}}
\index{toUpper@{toUpper}!KJS::UCharReference@{KJS::UChar\-Reference}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf UChar} KJS::UChar\-Reference::to\-Upper () const\hspace{0.3cm}{\tt  [inline]}}\label{classKJS_1_1UCharReference_a6}


\begin{Desc}
\item[Returns:]Character converted to upper case. \end{Desc}


Definition at line 152 of file ustring.h.

References KJS::UChar::to\-Upper().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
ustring.h\item 
ustring.cpp\end{CompactItemize}
