File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -900,13 +900,20 @@ Example:
900
900
901
901
multi method ords(Str:D:) returns Positional
902
902
903
- Returns a list of codepoint numbers, one for the base character of each
904
- grapheme in the string.
903
+ Returns a list of Unicode codepoint numbers that describe the codepoints making up the string.
905
904
906
905
Example:
907
906
908
907
"aå«".ords; # (97 229 171)
909
908
909
+ Strings are represented as graphemes. If a character in the string is represented by multiple
910
+ codepoints, then all of those codepoints will appear in the result of C < ords > . Therefore, the
911
+ number of elements in the result may not always be equal to L < chars > , but will be equal to
912
+ L < codes > .
913
+
914
+ The codepoints returned will represent the string in L < NFC > . See the L < NFD > , L < NFKC > , and
915
+ C < NFKD > methods if other forms are required.
916
+
910
917
= head2 method trans
911
918
912
919
proto method trans(|)
You can’t perform that action at this time.
0 commit comments