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);

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

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

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

Name

Description

guidString

string in {GUID String Format} to parse

result

GUID object to populate

Created with MrDocs