Introduction to the uuid Module
The uuid module provides UUID functionality to Qore, allowing qore programs to generate and manipulate UUIDs.
This module is released under the LGPL 2.1 and is tagged as such in the module's header (meaning it can be loaded unconditionally regardless of how the Qore library was initialized).
Like all Qore components, the uuid module is thread-safe.
The underlying UUID functionality is provided by any number of supported UUID libraries, whichever was used at build time.
Example
The most common usage will be simply to generate a UUID string:
%requires uuid
%new-style
string uuid = UUID::get();
UUID class
See the Qore::UUID::UUID class for information about further UUID-related functionality in this module.
Release Notes
Version 1.4
- updated to build with the latest Qore APIs
Version 1.3
- minor build and packaging fixes
Version 1.2
- took the following steps to ensure consistent behavior on all platforms:
- modified the default output (without any flags) to always be a string with lower-case hex digit letters
- updated implementation to manage case even if the uuid library does not support the uuid_unparse_lower() and uuid_unparse_upper() functions
- added support for building the module on Windows and with the OSSP UUID library
- note that UUID generation flags are ignored on Windows
Version 1.1
- added the following static method allowing a string UUID to be returned immediately without creating an object:
- minor corrections were made in the documentation
Version 1.0
- Initial release of the uuid module
- Requires qore 0.8.0+ to build and run