[#BloombergLP-balm-PublicationType-fromString-04] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/PublicationType.adoc[PublicationType]::fromString :relfileprefix: ../../../ :mrdocs: `fromString` overloads == Synopses Declared in `<balm_publicationtype.h>` Load into the specified `result` the enumerator matching the specified `string`. Return 0 on success, and a non‐zero value with no effect on `result` otherwise (i.e., `string` does not match any enumerator). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/balm/PublicationType/fromString-0d.adoc[fromString]( xref:BloombergLP/balm/PublicationType/Value.adoc[Value]* result, std::string_view const& string); ---- [.small]#xref:BloombergLP/balm/PublicationType/fromString-0d.adoc[_» more..._]# Load into the specified `result` the enumerator matching the specified `string` of the specified `stringLength`. Return 0 on success, and a non‐zero value with no effect on `result` otherwise (i.e., `string` does not match any enumerator). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/balm/PublicationType/fromString-0b.adoc[fromString]( xref:BloombergLP/balm/PublicationType/Value.adoc[Value]* result, char const* string, int stringLength); ---- [.small]#xref:BloombergLP/balm/PublicationType/fromString-0b.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#