\section{KJS::Lookup Class Reference}
\label{classKJS_1_1Lookup}\index{KJS::Lookup@{KJS::Lookup}}
Fast keyword lookup.  


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

\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
int {\bf find} (const  struct {\bf Hash\-Table} $\ast$table, const  {\bf UString} \&s)
\begin{CompactList}\small\item\em Find an entry in the table, and return its value (i.e. \item\end{CompactList}\item 
int {\bf find} (const  struct {\bf Hash\-Table} $\ast$table, const  {\bf UChar} $\ast$c, unsigned int len)\label{classKJS_1_1Lookup_e1}

\item 
const  {\bf Hash\-Entry} $\ast$ {\bf find\-Entry} (const  struct {\bf Hash\-Table} $\ast$table, const  {\bf UString} \&s)
\begin{CompactList}\small\item\em Find an entry in the table, and return the entry This variant gives access to the other attributes of the entry, especially the attr field. \item\end{CompactList}\item 
const  {\bf Hash\-Entry} $\ast$ {\bf find\-Entry} (const  struct {\bf Hash\-Table} $\ast$table, const  {\bf UChar} $\ast$c, unsigned int len)\label{classKJS_1_1Lookup_e3}

\item 
unsigned int {\bf hash} (const  {\bf UString} \&key)
\begin{CompactList}\small\item\em Calculate the hash value for a given key. \item\end{CompactList}\item 
unsigned int {\bf hash} (const  {\bf UChar} $\ast$c, unsigned int len)\label{classKJS_1_1Lookup_e5}

\item 
unsigned int {\bf hash} (const  char $\ast$s)\label{classKJS_1_1Lookup_e6}

\end{CompactItemize}


\subsection{Detailed Description}
Fast keyword lookup. 



Definition at line 97 of file lookup.h.

\subsection{Member Function Documentation}
\index{KJS::Lookup@{KJS::Lookup}!find@{find}}
\index{find@{find}!KJS::Lookup@{KJS::Lookup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Lookup::find (const struct {\bf Hash\-Table} $\ast$ {\em table}, const {\bf UString} \& {\em s})\hspace{0.3cm}{\tt  [static]}}\label{classKJS_1_1Lookup_e0}


Find an entry in the table, and return its value (i.e. 

the value field of {\bf Hash\-Entry}{\rm (p.\,\pageref{structKJS_1_1HashEntry})}) 

Definition at line 89 of file lookup.cpp.

References KJS::UString::data(), and KJS::UString::size().\index{KJS::Lookup@{KJS::Lookup}!findEntry@{findEntry}}
\index{findEntry@{findEntry}!KJS::Lookup@{KJS::Lookup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const  {\bf Hash\-Entry} $\ast$ Lookup::find\-Entry (const struct {\bf Hash\-Table} $\ast$ {\em table}, const {\bf UString} \& {\em s})\hspace{0.3cm}{\tt  [static]}}\label{classKJS_1_1Lookup_e2}


Find an entry in the table, and return the entry This variant gives access to the other attributes of the entry, especially the attr field. 



Definition at line 74 of file lookup.cpp.

References KJS::UString::data(), and KJS::UString::size().\index{KJS::Lookup@{KJS::Lookup}!hash@{hash}}
\index{hash@{hash}!KJS::Lookup@{KJS::Lookup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}unsigned int Lookup::hash (const {\bf UString} \& {\em key})\hspace{0.3cm}{\tt  [static]}}\label{classKJS_1_1Lookup_e4}


Calculate the hash value for a given key. 



Definition at line 104 of file lookup.cpp.

References KStd\-Accel::key().

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