company logo

String :: formatString - Format typed strings

According to the type (JSON, XML, ESDF) strings are formatted in a way, that each line shows one value. Instance and collection indicators are displayed on separate lines and values within instances and collections are indented.

Return value:  Text string ( odaba::String & )

The text string contains text with any kind of character encoding.

Implementation details

odaba::String String  :: formatString ( odaba::String &sType )

According to the type strings are formatted in a way, that each line shows one value. Instance and collection indicators are displayed on separate lines and values within instances and collections are indented.

Currently, only JSON is supported. The function returns the formatted String or the original string, when the type is not supported (XML, ESDF) or unknown.

  • sType - - Title unknown