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

Predicate getCodepointLength

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

Import path

import codeql.util.Strings
int getCodepointLength(string str)