string_is_valid


Description:

public static bool string_is_valid (string type_string)

Checks if type_string is a valid [GVariant type string](.

/struct.VariantType.html#gvariant-type-strings).

This call is equivalent to calling [func@GLib.VariantType.string_scan] and confirming that the following character is a nul terminator.

Parameters:

type_string

a pointer to any string

Returns:

true if type_string is exactly one valid type string Since 2.24