Skip to content

Commit 2a1ca63

Browse files
authored
Merge pull request github#14543 from erik-krogh/string-not-int
move the documentation of codePointAt and codePointCount to the string type instead of the int type
2 parents 0ab159f + 5cd732b commit 2a1ca63

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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)