Skip to content

Commit 822ba2a

Browse files
committed
add documentation for the new string methods in ql-language-specification.rst
1 parent 116025c commit 822ba2a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1993,6 +1993,10 @@ 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+
+-------------------------+-------------+----------------+----------------------------------------------------------------------------------------------------------------+
19962000

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

0 commit comments

Comments
 (0)