string_to_gvalue


Description:

public static bool string_to_gvalue (string str, ref Value dest) throws SerializableError

Transforms a string into another type hosted by GLib.Value.

A utility function that handles converting a string representation of a value into the type specified by the supplied #GValue dest. A #GXmlSerializableError will be set if the string cannot be parsed into the desired type.

Serializable interface support a number of data types to convert from its string representation. These are supported types:

a. integers: int8, int64, uint, long, ulong, char, uchar a. boolean a. floats: float, double a. enumerations

Parameters:

str

the string to transform into the given #GValue object

dest

the #GValue out parameter that will contain the parsed value from the string

Returns:

`true` if parsing succeeded, otherwise `false`