|
OXY API 1.0
OXY API Library Documentation
|
Provides functions for generating and validating UUIDs (Universally Unique Identifier). More...
Namespaces | |
| namespace | oxy |
| This root namespace contains the common types and operations for the OXY-API library. | |
Functions | |
| auto | oxy::is_uuid (std::string const &id) |
| Checks whether a string is a valid UUID. | |
| std::string | oxy::make_nil_uuid () |
| Creates a nil (all-zeros) UUID and returns it as a string. | |
| std::string | oxy::make_uuid () |
| Generates a random UUID and returns it as a string. | |
Provides functions for generating and validating UUIDs (Universally Unique Identifier).
This header defines functions for generating random UUIDs, creating nil UUIDs, and validating whether a given string is a valid UUID. It utilizes the Boost UUID library for generating and manipulating UUIDs. The functions return UUIDs as strings and support both dashed and non-dashed formats. The implementation ensures that UUIDs conform to the standard format and can be used for unique identification purposes in various applications.
@license MPL-2.0