kjs Library API Documentation

KJS::Lookup Class Reference

Fast keyword lookup. More...

#include <lookup.h>

List of all members.

Static Public Member Functions

int find (const struct HashTable *table, const Identifier &s)
int find (const struct HashTable *table, const UChar *c, unsigned int len)
const HashEntryfindEntry (const struct HashTable *table, const Identifier &s)
const HashEntryfindEntry (const struct HashTable *table, const UChar *c, unsigned int len)
unsigned int hash (const Identifier &key)
unsigned int hash (const UChar *c, unsigned int len)
unsigned int hash (const char *s)


Detailed Description

Fast keyword lookup.

Definition at line 102 of file lookup.h.


Member Function Documentation

int Lookup::find const struct HashTable table,
const Identifier &  s
[static]
 

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

the value field of HashEntry)

Definition at line 87 of file lookup.cpp.

References KJS::HashTable::size.

const HashEntry * Lookup::findEntry const struct HashTable table,
const Identifier &  s
[static]
 

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.

References KJS::HashTable::size.

unsigned int Lookup::hash const Identifier &  key  )  [static]
 

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:
KDE Logo
This file is part of the documentation for kjs Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Jan 21 09:57:42 2005 by doxygen 1.3.6 written by Dimitri van Heesch, © 1997-2003