CoreClasses Xojo Plugin

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

HasKeyReturns 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.
LookupLooks up value of a Key and Returns its value Variant or default value if key was not found.
RemoveRemoves by key from the Dictionary.
RemoveAll (Inherited) Removes all entries from the Dictionary.
SearchByPrefixFinds all values in the dictionary which have given prefix.
ValueRetrieves the value associated with the supplied key.
ValueAssigns 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 bit
  • macOS Apple Silicon
  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit
  • iOS