MirStringTable

Fast string table used to get key's id. The keys should be first sorted by length and then lexicographically.

Constructors

this
this(const(immutable(C)[])[] sortedKeys)

The keys should be first sorted by length and then lexicographically.

Members

Functions

get
bool get(C[] key, uint index)
opIndex
uint opIndex(C[] key)

Variables

sortedKeys
const(immutable(C)[])[] sortedKeys;

Keys sorted by length and then lexicographically.

Parameters

U

an unsigned type that can hold an index of sorted keys. U.max must be less then length of the table.

C

character type

Meta