Built-in class for providing Unicode related information. Although it can be instantiated, these methods currently mostly make sense when called as class methods. In which case they represent the information of the supported version of Unicode in the current runtime.
Available as of release 2023.02 of the Rakudo compiler. Available as an installable module for earlier versions of the Rakudo compiler.
Methods
method version
method version(Unicode:)
Returns a Version
object representing the Unicode version.
say Unicode.version; # OUTPUT: «v15.0»
method NFG
method NFG(Unicode:)
Returns a Bool
indicating whether complete Normalization Form Grapheme
support is available.
# on MoarVMsay Unicode.NFG; # OUTPUT: «True»# on JVMsay Unicode.NFG; # OUTPUT: «False»