File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments