CodeQL library for JavaScript/TypeScript
codeql/javascript-all 2.1.1-dev (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)