Indexes a set of records by identifying strings.
Make a table.
makeTable dictCount getIdentifiersdictCount is the number of dictionaries to populate. The dictionaries map prefixes of the search string to matches. If the search string is longer than dictCount, then a linear search is done on the results from the final dictionary.
This provides a tradeoff between insertion speed, storage space, and lookup speed.
A dictCount of 3 or 4 is probably right for most applications.
The list of strings returned by getIdentifiers are the indices for an inserted element. Usually, there will only be one.
Insert a record in the table.
Insert multiple elements into a table.
Lookup a string in a table.
Remove a record from a table.
This implementation is slow, looping over every element of every dictionary, since I don't expect it to be used much.
Get a string's substrings of a given length.
If the length is 1, returns only the first character in the string.
None of the substrings will contain spaces. Each element in the returned list will be unique.
The table type.