File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -303,11 +303,11 @@ type C<Str> may return invalid negative numbers as "codepoints".
303
303
304
304
= head2 Character Representation
305
305
306
- chr(Int $codepoint) --> Str
307
- chrs(Array[Int] @codepoints) --> Str
306
+ chr(Int $codepoint) --> Uni
307
+ chrs(Array[Int] @codepoints) --> Uni
308
308
309
- Cool.chr() --> Str
310
- Cool.chrs() --> Str
309
+ Cool.chr() --> Uni
310
+ Cool.chrs() --> Uni
311
311
312
312
Converts one or more numbers into a series of characters, treating those numbers
313
313
as Unicode codepoints. The C < chrs > version generates a multi-character string
@@ -316,13 +316,12 @@ from the given array.
316
316
Note that this operates on encoding-independent codepoints (use C < Buf > types for
317
317
encoded codepoints).
318
318
319
- An error will occur if the C < Str > generated by these functions contains an
319
+ An error will occur if the C < Uni > generated by these functions contains an
320
320
invalid character or sequence of characters. This includes, but is not limited
321
- to, codepoint values greater than C < 0x10FFFF > and parts of surrogate code pairs,
322
- and negative numbers.
321
+ to, codepoint values greater than C < 0x10FFFF > and parts of surrogate code pairs.
323
322
324
- The ability to convert negative number codepoints (i.e. C < Str.ords > ) is not
325
- guaranteed and therefore currently disallowed .
323
+ To obtain a more definitive string type, the normal ways of type conversion may
324
+ be used .
326
325
327
326
= head2 Character Name
328
327
You can’t perform that action at this time.
0 commit comments