mir-core — Libmir Archive
Libmir Archive
API Reference Index
mir-core Guide
Dlang.org
getEnumIndexFromKey.getEnumIndexFromKey
mir
enums
getEnumIndexFromKey
Retrieves the enum index from a key string, returning true if the key matches.
template
getEnumIndexFromKey
(T, bool caseInsensitive = true, getKeysTemplate...)
@
safe
pure nothrow @
nogc
bool
getEnumIndexFromKey
(
C
)
(
scope
const
(
C
)[]
key
,
ref
uint
index
)
if
(
is
(
C
==
char
) ||
is
(
C
==
wchar
)
||
is
(
C
==
dchar
)
)
if
(
is
(
T
== enum) &&
getKeysTemplate.length
<= 1
)
mir
enums
getEnumIndexFromKey
functions
getEnumIndexFromKey
Retrieves the enum index from a key string, returning true if the key matches.