Skip to content

Commit

Permalink
Merge pull request #14543 from erik-krogh/string-not-int
Browse files Browse the repository at this point in the history
move the documentation of codePointAt and codePointCount to the string type instead of the int type
  • Loading branch information
erik-krogh authored Oct 19, 2023
2 parents 0ab159f + 5cd732b commit 2a1ca63
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1993,10 +1993,6 @@ The following built-in predicates are members of type ``int``:
+-------------------------+-------------+----------------+----------------------------------------------------------------------------------------------------------------+
| ``toUnicode`` | string | | The result is the unicode character for the receiver seen as a unicode code point. |
+-------------------------+-------------+----------------+----------------------------------------------------------------------------------------------------------------+
| ``codePointAt`` | int | int | The result is the unicode code point at the index given by the argument. |
+-------------------------+-------------+----------------+----------------------------------------------------------------------------------------------------------------+
| ``codePointCount`` | int | int, int | The result is the number of unicode code points in the receiver between the given indices. |
+-------------------------+-------------+----------------+----------------------------------------------------------------------------------------------------------------+

The leftmost bit after ``bitShiftRightSigned`` depends on sign extension, whereas after ``bitShiftRight`` it is zero.

Expand Down Expand Up @@ -2056,6 +2052,10 @@ The following built-in predicates are members of type ``string``:
+----------------------+-------------+------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ``trim`` | string | | The result is the receiver with all whitespace removed from the beginning and end of the string. |
+----------------------+-------------+------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ``codePointAt`` | int | int | The result is the unicode code point at the index given by the argument. |
+----------------------+-------------+------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ``codePointCount`` | int | int, int | The result is the number of unicode code points in the receiver between the given indices. |
+----------------------+-------------+------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Regular expressions are as defined by ``java.util.regex.Pattern`` in Java.
For more information, see the `Java API Documentation <https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/regex/Pattern.html>`__.
Expand Down

0 comments on commit 2a1ca63

Please sign in to comment.