\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 
static int {\bf find} (const struct {\bf Hash\-Table} $\ast$table, const {\bf Identifier} \&s)
\item 
static int {\bf find} (const struct {\bf Hash\-Table} $\ast$table, const {\bf UChar} $\ast$c, unsigned int len)\label{classKJS_1_1Lookup_e1}

\item 
static const {\bf Hash\-Entry} $\ast$ {\bf find\-Entry} (const struct {\bf Hash\-Table} $\ast$table, const {\bf Identifier} \&s)
\item 
static 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 
static unsigned int {\bf hash} (const {\bf Identifier} \&key)
\item 
static unsigned int {\bf hash} (const {\bf UChar} $\ast$c, unsigned int len)\label{classKJS_1_1Lookup_e5}

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

\end{CompactItemize}


\subsection{Detailed Description}
Fast keyword lookup. 



Definition at line 102 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 Identifier} \& {\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 87 of file lookup.cpp.\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 Identifier} \& {\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 72 of file lookup.cpp.\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 Identifier} \& {\em key})\hspace{0.3cm}{\tt  [static]}}\label{classKJS_1_1Lookup_e4}


Calculate the hash value for a given key. 



Definition at line 102 of file lookup.cpp.

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