Top | ![]() |
![]() |
![]() |
![]() |
gboolean nk_enum_parse (const gchar *string
,const gchar * const *values
,guint64 size
,NkEnumMatchFlags flags
,guint64 *value
);
Searches in values
if a string is matching string
.
If the function returns TRUE
, value
will be set to the index of the matching string from values
.
If the function returns FALSE
, value
is left untouched.
string |
a string |
|
values |
a list of strings representing the enum names. |
[array length=size] |
size |
the size of |
|
flags |
NkEnumMatchFlags to modify matching behaviour |
|
value |
the enum value. |
[out] |