Util.parseDebugString

Parses a string containing debugging options into a guint containing bit flags. This is used within GDK and GTK+ to parse the debug options passed on the command line or through environment variables. If string is equal to "all", all flags are set. If string is equal to "help", all the available keys in keys are printed out to standard error.

class Util
static
uint
parseDebugString
(
string string
,,
uint nkeys
)

Parameters

string string

a list of debug options separated by colons, spaces, or commas, or NULL.

keys GDebugKey*

pointer to an array of GDebugKey which associate strings with bit flags.

nkeys uint

the number of GDebugKeys in the array.

Return Value

Type: uint

the combined set of bit flags.

Meta