Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5cd732b

Browse files
committed
move the documentation of codePointAt and codePointCount to the string type instead of the int type
1 parent da44b13 commit 5cd732b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/codeql/ql-language-reference/ql-language-specification.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1993,10 +1993,6 @@ The following built-in predicates are members of type ``int``:
19931993
+-------------------------+-------------+----------------+----------------------------------------------------------------------------------------------------------------+
19941994
| ``toUnicode`` | string | | The result is the unicode character for the receiver seen as a unicode code point. |
19951995
+-------------------------+-------------+----------------+----------------------------------------------------------------------------------------------------------------+
1996-
| ``codePointAt`` | int | int | The result is the unicode code point at the index given by the argument. |
1997-
+-------------------------+-------------+----------------+----------------------------------------------------------------------------------------------------------------+
1998-
| ``codePointCount`` | int | int, int | The result is the number of unicode code points in the receiver between the given indices. |
1999-
+-------------------------+-------------+----------------+----------------------------------------------------------------------------------------------------------------+
20001996

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

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

20602060
Regular expressions are as defined by ``java.util.regex.Pattern`` in Java.
20612061
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>`__.

0 commit comments

Comments
 (0)