Class: StringUtils

StringUtils

new StringUtils()

Some helper methods about string
Source:

Methods

(static) deserializeValue(str, preferedType) → {Variant}

Deserialize a simple value from string by value type info stored inside.
Parameters:
Name Type Description
str String
preferedType String If provided, str will be converted to this type.
Source:
Returns:
Type
Variant

(static) serializeValue(value, unchangeTypes) → {String}

Serialize a simple value and try to preserve value type info.
Parameters:
Name Type Description
value Variant
unchangeTypes Array Name of types that need not to be special marked.
Source:
Returns:
Type
String