Skip to content

Commit 9002530

Browse files
committed
Document new Unicode class
1 parent 58d64f0 commit 9002530

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

doc/Type/Unicode.pod6

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
=begin pod :kind("Type") :subkind("class") :category("domain-specific")
2+
3+
=TITLE class Unicode
4+
5+
=SUBTITLE Unicode related information
6+
7+
class Unicode { }
8+
9+
Built-in class for providing Unicode related information. Although it
10+
can be instantiated, these methods currently mostly make sense when called
11+
as class methods. In which case they represent the information of the
12+
supported version of Unicode in the current runtime.
13+
14+
Available as of release 2023.02 of the Rakudo compiler. Available as an
15+
L<installable module|https://raku.land/zef:lizmat/Unicode> for earlier
16+
versions of the Rakudo compiler.
17+
18+
=head1 Methods
19+
20+
=head2 method version
21+
22+
method version(Unicode:)
23+
24+
Returns a L«C<Version>|/type/Version» object representing the Unicode
25+
version.
26+
27+
say Unicode.version; # OUTPUT: «v15.0␤»
28+
29+
=head2 method NFG
30+
31+
method NFG(Unicode:)
32+
33+
Returns a L«C<Bool>|/type/Bool» indicating whether complete
34+
L«C<Normalization Form Grapheme>|/language/glossarye#NFG» support is
35+
available.
36+
37+
# on MoarVM
38+
say Unicode.NFG; # OUTPUT: «True␤»
39+
40+
# on JVM
41+
say Unicode.NFG; # OUTPUT: «False␤»
42+
43+
=end pod

0 commit comments

Comments
 (0)