added amb1336 - GetTrieSize()

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401835
This commit is contained in:
David Anderson
2008-01-03 06:11:26 +00:00
parent d37e02c65c
commit 4e1fb49096
3 changed files with 50 additions and 0 deletions
+12
View File
@@ -144,3 +144,15 @@ native RemoveFromTrie(Handle:trie, const String:key[]);
* @error Invalid Handle.
*/
native ClearTrie(Handle:trie);
/**
* Retrieves the number of elements in a trie.
*
* Note that trie items are not enumerable/iteratable. If you need to
* retrieve the elements in a trie, store its keys in an ADT Array.
*
* @param trie Trie Handle.
* @return Number of elements in the trie.
* @error Invalid Handle.
*/
native GetTrieSize(Handle:trie);