UNICODE-VERSION - Provide $?UNICODE-VERSION for older Raku versions
say $?UNICODE-VERSION; # v13.0 e.g.
UNICODE-VERSION checks the unicode database at compile time for certain marker codepoints that got added at certain unicode versions and exports a
Version constant that indicates the version of Unicode that is currently being supported, as determined by those codepoints.
Algorithm suggested by Stephen Schulze
Elizabeth Mattijsen email@example.com
Source can be located at: https://github.com/lizmat/UNICODE-VERSION . Comments and Pull Requests are welcome.
If you like this module, or what I’m doing more generally, committing to a small sponsorship would mean a great deal to me!
COPYRIGHT AND LICENSE
Copyright 2023 Elizabeth Mattijsen
This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.