CodeQL library for Python
codeql/python-all 2.2.0 (changelog, source)
Search

Module Strings

Import path

import codeql.util.Strings

Predicates

asciiPrintable

Gets the ASCII code for char. Only the easily printable chars are included (so no newline, tab, null, etc).

escape

Gets the result of backslash-escaping newlines, carriage-returns, backslashes, and unicode characters in s.

getACodepoint

Gets any unicode character that appears in s.

getCodepointAt

Gets the ith codepoint in s. Unpaired surrogates are skipped.

getCodepointLength

Gets the number of unicode codepoints in s not counting unpaired surrogates.