[#BloombergLP-baljsn-EncoderTestChoiceWithAllCategoriesEnumeration-fromString-0a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategoriesEnumeration.adoc[EncoderTestChoiceWithAllCategoriesEnumeration]::fromString
:relfileprefix: ../../../
:mrdocs:

Load into `result` the enumerator matching the specified `string`&period;

== Synopses

Declared in `&lt;baljsn&lowbar;encoder&lowbar;testtypes&period;h&gt;`

Load into `result` the enumerator matching the specified `string`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategoriesEnumeration/fromString-08.adoc[fromString](
    xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategoriesEnumeration/Value.adoc[Value]* result,
    xref:bsl/string.adoc[bsl::string] const& string);
----

[.small]#xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategoriesEnumeration/fromString-08.adoc[_» more&period;&period;&period;_]#

Load into `result` the enumerator matching the specified `string`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategoriesEnumeration/fromString-0c.adoc[fromString](
    xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategoriesEnumeration/Value.adoc[Value]* result,
    char const* string,
    int stringLength);
----

[.small]#xref:BloombergLP/baljsn/EncoderTestChoiceWithAllCategoriesEnumeration/fromString-0c.adoc[_» more&period;&period;&period;_]#

== Return Value

0 if successful, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *result*
| receives the enumerator on success
| *string*
| string representation of the enumerator
| *stringLength*
| length of `string`
|===


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