EinhugurCollections.PrefixDictionaryCaseInsensitive Class (console safe)
A case insensitive prefix dictionary class.
Prefix dictionaries are optimised and extremely fast in getting one to many result sets based on prefix of a given key. Prefix dictionaries are often used for things like auto complete for example.
The dictionary also has characteristics of normal dictionary where you can fetch one value at a time by key.
This version of the PrefixDictionary is case insensitive.
EinhugurCollections.PrefixDictionary
PrefixDictionaryCaseInsensitive
class EinhugurCollections.PrefixDictionaryCaseInsensitive
Properties
KeyCount (Inherited) | Returns the number of key-value pairs in the Dictionary. |
Methods
HasKey | Returns True if Key is in the Dictionary and False if it is not. |
Keys (Inherited) | Returns all the keys in the Dictionary as an array of String. |
Lookup | Looks up value of a Key and Returns its value Variant or default value if key was not found. |
Remove | Removes by key from the Dictionary. |
RemoveAll (Inherited) | Removes all entries from the Dictionary. |
SearchByPrefix | Finds all values in the dictionary which have given prefix. |
Value | Retrieves the value associated with the supplied key. |
Value | Assigns a value to the key item in the PrefixDictionaryCaseInsensitive |
Values (Inherited) | Returns all the values in the Dictionary as an array of Variants. |
Note:
Case insensitive dictionary has slight performance hit when inserting into the dictionary compared to the case sensitive version. Lookups do not take performance hit.
Supported Platforms:
macOS Intel 64 bitmacOS Apple SiliconWindows 32 bitWindows 64 bitWindows ARM 64 bitLinux 32 bitLinux 64 bitLinux ARM 32 bitLinux ARM 64 bitiOS