pe_unit_from_string

Creates a unit of measure object from its string representation

Usage syntax

PE_UNIT pe_unit_from_string (const char *buffer);

Parameters
buffer The string representation of the unit of measure object
Description

Creates a unit of measure object from its string representation

Returns

On success, a unit of measure object; otherwise, a null pointer

Examples

PE_UNIT m;

char *unit_metadata = “UNIT[\"Meter\",1.0]”;

m = pe_unit_from_string(unit_metadata);