CodeQL library for Java/Kotlin
codeql/java-all 4.2.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)