class Unicode

Unicode related information
class Unicode { }

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 MoarVM
    say Unicode.NFG; # OUTPUT: «True␤»
# on JVM
    say Unicode.NFG; # OUTPUT: «False␤»

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite — the markup and publishing tools behind this site.