AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
AUuid Class Reference

Implements universally unique identifier (UUID)

#include <AUI/Common/AUuid.h>

Constructor & Destructor Documentation

◆ AUuid()

AUuid::AUuid ( const AString & s)

Construct UUID value from string. Supported the following formats:

  • Canonical: 8-4-4-4-12 (123e4567-e89b-12d3-a456-426655440000)
  • Raw: 32 (123e4567e89b12d3a456426655440000)
Parameters
sstring representing UUID

Member Function Documentation

> All members, including inherited

◆ fromString()

static AUuid AUuid::fromString ( const AString & string)
static

Converts a string to UUID. If the string is a valid UUID it is converted to the matching AUuid value else a new UUID generated from the string contents.

Parameters
string
Returns
generated UUID.

◆ toRawString()

AString AUuid::toRawString ( ) const
nodiscard
Returns
uuid string in raw format

◆ toString()

AString AUuid::toString ( ) const
nodiscard
Returns
uuid string in canonical format