[#BloombergLP-bdlb-GuidUtil-guidFromString-0b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/GuidUtil.adoc[GuidUtil]::guidFromString
:relfileprefix: ../../../
:mrdocs:

Parse `guidString` as a GUID and load the value into `result`&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;guidutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
guidFromString(
    xref:BloombergLP/bdlb/Guid.adoc[Guid]* result,
    std::string&lowbar;view const& guidString);
----

== Description

Parse the specified `guidString` (in &lcub;GUID String Format&rcub;) and load its value into the specified `result`&period; Return 0 if `result` successfully loaded, and a non&hyphen;zero value otherwise&period;

== Return Value

0 if `result` was successfully loaded, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *result*
| GUID object to populate
| *guidString*
| string in &lcub;GUID String Format&rcub; to parse
|===


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