QgsHstoreUtils namespace

The QgsHstoreUtils namespace provides functions to handle hstore-formatted strings.

Contents

Functions

auto build(const QVariantMap& map) -> CORE_EXPORT QString
Build a hstore-formatted string from a QVariantMap.
auto parse(const QString& string) -> CORE_EXPORT QVariantMap
Returns a QVariantMap object containing the key and values from a hstore-formatted string.

Function documentation

CORE_EXPORT QString QgsHstoreUtils::build(const QVariantMap& map)

Build a hstore-formatted string from a QVariantMap.

Parameters
map The map to format as a string

CORE_EXPORT QVariantMap QgsHstoreUtils::parse(const QString& string)

Returns a QVariantMap object containing the key and values from a hstore-formatted string.

Parameters
string The hstored-formatted string