MirStringTable

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

  1. struct MirStringTable(U, C = char)
  2. struct MirStringTable(size_t length, size_t maxKeyLength, bool caseInsensetive = false, C = char)
    struct MirStringTable (
    size_t length
    size_t maxKeyLength
    bool caseInsensetive = false
    C = char
    ) if (
    is(C == char) ||
    is(C == wchar)
    ||
    is(C == dchar)
    ) {}

Constructors

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

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

Members

Functions

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

Variables

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

Parameters

C

character type

Meta