Dokumentaro de Gambaso
Compilation & Installation
Components
gb
gb.crypt
gb.qt4
Documents
Indekso de Lingvo
Language Overviews
LeguMin
Lexicon
Registro

Trie (gb.data)

This class implements a Patricia Trie. You can learn about its semantics from Wikipedia.

This class is creatable.

This class acts like a read / write array.

This class is enumerable with the FOR EACH keyword.

Properties
Count   Return the number of values in the Trie.
Key   Return the key of the last enumerated element.

Methods
Add   Associate a value with a given key. If the value is Null, the key is removed.
Clear   Remove all elements from the Trie.
Complete   Return the completion of the given prefix, that is the longest unambiguous continuation of the input string.
Exist   Return whether the named key exists, i.e. if it has a value.
GetPrefix   Return a TriePrefix object to search part of a trie.
Remove   Remove the named element. This is equivalent to _put'ing Null into its key.