BloombergLP::bdlb::GuidUtil::guidFromString

guidFromString overloads

Synopses

Declared in <bdlb_guidutil.h>

Parse the specified guidString (in {GUID String Format}) and return the converted GUID, or a default-constructed Guid if the string is improperly formatted.

static
Guid
guidFromString(std::string_view const& guidString);
» more...

Parse guidString as a GUID and load the value into result.

static
int
guidFromString(
    Guid* result,
    std::string_view const& guidString);
» more...

Return Value

  • the converted GUID, or a default-constructed Guid if guidString is improperly formatted
  • 0 if result was successfully loaded, and a non-zero value otherwise

Parameters

NameDescription
guidStringstring in {GUID String Format} to parse
resultGUID object to populate