[#BloombergLP-balxml-TypesParserUtil-parse]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/TypesParserUtil.adoc[TypesParserUtil]::parse
:relfileprefix: ../../../
:mrdocs:

Parse the specified `input` using the specified `formattingMode`&period;

== Synopsis

Declared in `&lt;balxml&lowbar;typesparserutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
static
int
parse(
    TYPE* result,
    char const* input,
    int inputLength,
    int formattingMode);
----

== Description

Parse the specified `input` of the specified `inputLength` using the specified `formattingMode` and load the result into the specified `result`&period; Return 0 on success, and a non&hyphen;zero value otherwise&period; The behavior is undefined unless the parameterized `TYPE` and the `formattingMode` combination is supported (supported combinations are listed in the component&hyphen;level documentation)&period;

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *result*
| parsed value
| *input*
| character buffer to parse
| *inputLength*
| number of characters in `input`
| *formattingMode*
| XML formatting mode to apply
|===


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