Rename to StringMap.
This commit is contained in:
parent
4ee04b8a7b
commit
2724659be8
@ -49,7 +49,7 @@
|
||||
*
|
||||
* @return New Map Handle, which must be freed via CloseHandle().
|
||||
*/
|
||||
native AdtMap:CreateTrie();
|
||||
native AdtStringMap:CreateTrie();
|
||||
|
||||
/**
|
||||
* Sets a value in a hash map, either inserting a new entry or replacing an old one.
|
||||
@ -156,8 +156,8 @@ native ClearTrie(Handle:map);
|
||||
native GetTrieSize(Handle:map);
|
||||
|
||||
/* Object-oriented wrapper for maps. */
|
||||
methodmap AdtMap < Handle {
|
||||
public AdtMap() = CreateTrie;
|
||||
methodmap StringMap < Handle {
|
||||
public StringMap() = CreateTrie;
|
||||
public SetValue() = SetTrieValue;
|
||||
public SetArray() = SetTrieArray;
|
||||
public SetString() = SetTrieString;
|
||||
|
@ -17,7 +17,7 @@ public OnPluginStart()
|
||||
|
||||
public Action:RunTests(argc)
|
||||
{
|
||||
new AdtMap:map = AdtMap();
|
||||
new StringMap:map = StringMap();
|
||||
|
||||
for (new i = 0; i < 64; i++) {
|
||||
new String:buffer[24];
|
||||
|
Loading…
Reference in New Issue
Block a user