mir.string_table

Mir String Table designed for fast deserialization routines.

Members

Functions

fastToUpper
auto fastToUpper(C a)
Undocumented in source. Be warned that the author may not have intended to support it.
fastToUpperInPlace
C[] fastToUpperInPlace(C[] a)
Undocumented in source. Be warned that the author may not have intended to support it.
prepareStringTableKeys
immutable(C)[][] prepareStringTableKeys(immutable(C)[][] keys)
Undocumented in source. Be warned that the author may not have intended to support it.
smallerStringFirstCmp
sizediff_t smallerStringFirstCmp(T[] a, T[] b)

Compares strings by length and then lexicographically.

Structs

MirStringTable
struct MirStringTable(U, C = char)
struct MirStringTable(size_t length, size_t maxKeyLength, bool caseInsensetive = false, C = char)

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

Templates

createTable
template createTable(C)
Undocumented in source.
minimalIndexType
template minimalIndexType(size_t length)
Undocumented in source.
minimalSignedIndexType
template minimalSignedIndexType(size_t length)
Undocumented in source.
smallerStringFirst
template smallerStringFirst(alias direction = "<")

Compares strings by length and then lexicographically.

Meta

License

Apache-2.0

Authors

Ilya Yaroshenko