File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -274,7 +274,7 @@ character can be uniquely classified as belonging to one range of characters.
274
274
275
275
= head2 pred
276
276
277
- method pred(Str:D) returns Str:D
277
+ method pred(Str:D: ) returns Str:D
278
278
279
279
Returns the string decremented by one.
280
280
@@ -285,4 +285,17 @@ C<Str.succ>). It fails on underflow
285
285
'a0'.pred # Failure
286
286
'img002.png'.pred # img001.png
287
287
288
+ = head2 ord
289
+
290
+ multi sub ord (Str:D) returns Int:D
291
+ multi method ord(Str:D:) returns Int:D
292
+
293
+ Returns the codepoint number of the first character of the string
294
+
295
+ = head2 ords
296
+
297
+ multi method ords(Str:D:) returns Positional
298
+
299
+ Returns a list of codepoint numbers, one for each character in the string.
300
+
288
301
= end pod
You can’t perform that action at this time.
0 commit comments