Records
Functions
-
bool operator== (const Uuid & a, const Uuid & b)Equality / inequality.
Defined at line 107 of file ../../src/lib/uuid/uuid.h
-
bool operator!= (const Uuid & a, const Uuid & b)Defined at line 110 of file ../../src/lib/uuid/uuid.h
-
std::ostream & operator<< (std::ostream & out, const Uuid & uuid)Writes Uuid.ToString() to the given stream.
Defined at line 118 of file ../../src/lib/uuid/uuid.cc
-
std::string Generate ()Generate a 128-bit (pseudo) random UUID in the form of version 4 as described
in RFC 4122, section 4.4.
The format of UUID version 4 must be xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx,
where y is one of [8, 9, A, B].
The hexadecimal values "a" through "f" are output as lower case characters.
Defined at line 120 of file ../../src/lib/uuid/uuid.cc
-
bool IsValid (const std::string & guid)Returns true if the input string conforms to the version 4 UUID format.
Note that this does NOT check if the hexadecimal values "a" through "f"
are in lower case characters, as Version 4 RFC says they're
case insensitive. (Use IsValidOutputString for checking if the
given string is valid output string)
Defined at line 122 of file ../../src/lib/uuid/uuid.cc
-
bool IsValidOutputString (const std::string & guid)Returns true if the input string is valid version 4 UUID output string.
This also checks if the hexadecimal values "a" through "f" are in lower
case characters.
Defined at line 124 of file ../../src/lib/uuid/uuid.cc