Since 2.24
VariantType.stringIsValid
bool stringIsValid(string typeString)Checks if type_string is a valid GVariant type string. This call is equivalent to calling [glib.variant_type.VariantType.stringScan] and confirming that the following character is a nul terminator.
Parameters
typeString | a pointer to any string |
Returns
true if type_string is exactly one valid type string