[#BloombergLP-bdljsn-StringUtil]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::StringUtil
:relfileprefix: ../../
:mrdocs:

This class provides utility functions for converting arbitrary UTF&hyphen;8 sequences into JSON strings and visa versa&period; See &lsqb;&rsqb;Strings) for details of these transformations&period;

== Synopsis

Declared in `&lt;bdljsn&lowbar;stringutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct StringUtil;
----

== Enums

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdljsn/StringUtil/Flags.adoc[`Flags`] 
| Flags controlling JSON string reading behavior&period;
|===


== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdljsn/StringUtil/readString-09.adoc[`readString`] 
| `readString` overloads
| xref:BloombergLP/bdljsn/StringUtil/readUnquotedString-0d.adoc[`readUnquotedString`] 
| `readUnquotedString` overloads
| xref:BloombergLP/bdljsn/StringUtil/writeString.adoc[`writeString`] 
| Write to the specified `stream` a JSON&hyphen;compliant string that is equivalent to the specified `string`, an arbitrary UTF&hyphen;8 codepoint sequence&period; Return 0 on success and a non&hyphen;zero value otherwise&period; The operation fails if `string` is not a sequence of UTF&hyphen;8 codepoints or if there is an error writing to `stream`&period; See &lsqb;&rsqb;Arbitrary UTF&hyphen;8 to JSON String) for further details&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
