KJS::Lookup Class Reference
Fast keyword lookup. More...
#include <lookup.h>
Static Public Methods | |
int | find (const struct HashTable *table, const UString &s) |
Find an entry in the table, and return its value (i.e. | |
const HashEntry * | findEntry (const struct HashTable *table, const UString &s) |
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. | |
unsigned int | hash (const UString &key) |
Calculate the hash value for a given key. |
Detailed Description
Fast keyword lookup.
Definition at line 95 of file lookup.h.
Member Function Documentation
|
Find an entry in the table, and return its value (i.e. the value field of HashEntry) Definition at line 89 of file lookup.cpp. References KJS::UString::data(), and KJS::UString::size(). |
|
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(). |
|
Calculate the hash value for a given key.
Definition at line 104 of file lookup.cpp. References KJS::UString::data(), KStdAccel::key(), and KJS::UString::size(). |
The documentation for this class was generated from the following files: