BrowserREPL-button-tip-on BrowserREPL-button-tip-off

EditButtonTip 2023-03-03

class Unicode

Unicode related information

class Unicode { }
Code

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:)
Code

Returns a Version object representing the Unicode version.

say Unicode.version; # OUTPUT: «v15.0␤»
Code

method NFG§

method NFG(Unicode:)
Code

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␤»
Code

Class relation diagram§

Rakudo Type Relation for Unicode Unicode Unicode Any Any Unicode->Any is