Skip to main content

lookup

Function lookup 

Source
pub fn lookup(word: &str) -> u16
Expand description

The index of word in the generated keyword table, or NOT_A_KEYWORD.

ASCII folded into a fixed buffer, because every keyword is a plain ASCII word and the longest is 15 bytes, so a longer candidate cannot be one and never touches the table.