Skip to content

Commit 60f07ed

Browse files
authored
Add nqp::codes to the docs
1 parent fad8b7c commit 60f07ed

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/ops.markdown

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
* [chars](#chars)
8282
* [chr](#chr)
8383
* [codepointfromname](#codepointfromname)
84+
* [codes](#codes)
8485
* [getstrfromname](#getstrfromname)
8586
* [concat](#concat)
8687
* [decode](#decode)
@@ -913,6 +914,11 @@ throw an exception on invalid codepoints.
913914
Returns the codepoint for the given unicode character name, or -1 if no
914915
match was found.
915916

917+
## codes
918+
* `chars(str $str --> int)`
919+
920+
Return the number of codepoints in the string.
921+
916922
## getstrfromname
917923
* `getstrfromname(str $name --> str)`
918924

0 commit comments

Comments
 (0)