.TH "KJS::Lookup" 3 "28 Jan 2004" "kjs Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KJS::Lookup \- Fast keyword lookup.  

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

.in +1c
.ti -1c
.RI "int \fBfind\fP (const  struct \fBHashTable\fP *table, const  \fBUString\fP &s)"
.br
.RI "\fIFind an entry in the table, and return its value (i.e. \fP"
.ti -1c
.RI "int \fBfind\fP (const  struct \fBHashTable\fP *table, const  \fBUChar\fP *c, unsigned int len)"
.br
.ti -1c
.RI "const  \fBHashEntry\fP * \fBfindEntry\fP (const  struct \fBHashTable\fP *table, const  \fBUString\fP &s)"
.br
.RI "\fIFind an entry in the table, and return the entry This variant gives access to the other attributes of the entry, especially the attr field. \fP"
.ti -1c
.RI "const  \fBHashEntry\fP * \fBfindEntry\fP (const  struct \fBHashTable\fP *table, const  \fBUChar\fP *c, unsigned int len)"
.br
.ti -1c
.RI "unsigned int \fBhash\fP (const  \fBUString\fP &key)"
.br
.RI "\fICalculate the hash value for a given key. \fP"
.ti -1c
.RI "unsigned int \fBhash\fP (const  \fBUChar\fP *c, unsigned int len)"
.br
.ti -1c
.RI "unsigned int \fBhash\fP (const  char *s)"
.br
.in -1c
.SH "Detailed Description"
.PP 
Fast keyword lookup. Definition at line 97 of file lookup.h.
.SH "Member Function Documentation"
.PP 
.SS "int Lookup::find (const struct \fBHashTable\fP * table, const \fBUString\fP & s)\fC [static]\fP"
.PP
Find an entry in the table, and return its value (i.e. the value field of \fBHashEntry\fP) Definition at line 89 of file lookup.cpp.
.PP
References KJS::UString::data(), and KJS::UString::size().
.SS "const  \fBHashEntry\fP * Lookup::findEntry (const struct \fBHashTable\fP * table, const \fBUString\fP & s)\fC [static]\fP"
.PP
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.
.PP
References KJS::UString::data(), and KJS::UString::size().
.SS "unsigned int Lookup::hash (const \fBUString\fP & key)\fC [static]\fP"
.PP
Calculate the hash value for a given key. Definition at line 104 of file lookup.cpp.
.PP
References KStdAccel::key().

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