parse_variant_attributes


Description:


[ Version ( since = "1.8" ) ]
public HashTable<string,Variant> parse_variant_attributes (string string, char attr_separator, char key_value_separator, bool ignore_unknown, VariantAttributeSpec spec) throws Error

Parse attributes from a string.

Parameters:

string

the input string

attr_separator

the attribute separator character

key_value_separator

character separating key and values

ignore_unknown

whether unknown attributes should be ignored

spec

the attribute format specifiers

Returns:

a GenericSet mapping attribute names to Variant values. Warning: the variant are still floating references, owned by the hash table. If you take a reference, ensure to sink the one of the hash table first.


Namespace: NM.Utils
Package: libnm