• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kjs
 

kjs

  • KJS
  • Lookup
Static Public Member Functions | List of all members
KJS::Lookup Class Reference

#include <lookup.h>

Static Public Member Functions

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

Detailed Description

Fast keyword lookup.

Definition at line 101 of file lookup.h.

Member Function Documentation

◆ find() [1/2]

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 86 of file lookup.cpp.

◆ find() [2/2]

int Lookup::find ( const struct HashTable *  table,
const UChar *  c,
unsigned int  len 
)
static

Definition at line 77 of file lookup.cpp.

◆ findEntry() [1/2]

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 71 of file lookup.cpp.

◆ findEntry() [2/2]

const HashEntry * Lookup::findEntry ( const struct HashTable *  table,
const UChar *  c,
unsigned int  len 
)
static

Definition at line 41 of file lookup.cpp.

◆ hash() [1/3]

unsigned int Lookup::hash ( const char *  s)
static

Definition at line 106 of file lookup.cpp.

◆ hash() [2/3]

unsigned int Lookup::hash ( const Identifier &  key)
static

Calculate the hash value for a given key.

Definition at line 101 of file lookup.cpp.

◆ hash() [3/3]

unsigned int Lookup::hash ( const UChar *  c,
unsigned int  len 
)
static

Definition at line 91 of file lookup.cpp.


The documentation for this class was generated from the following files:
  • lookup.h
  • lookup.cpp

kjs

Skip menu "kjs"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kjs

Skip menu "kjs"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for kjs by doxygen 1.9.4
This website is maintained by Timothy Pearson.