StringTable.lookup

Looks up the given string in the string table and returns its associated value.

  1. inout(StringValue!T)* lookup(const(char)[] str)
  2. inout(StringValue!T)* lookup(const(char)* s, size_t length)
    struct StringTable(T)
    inout @nogc nothrow pure
    inout(StringValue!T)*
    lookup
    (
    const(char)* s
    ,
    size_t length
    )

Parameters

s
Type: const(char)*

the string to look up

length
Type: size_t

the length of s

Return Value

Type: inout(StringValue!T)*

the string's associated value, or null if the string doesn't exist in the string table

Meta