CodeQL library for Ruby
codeql/ruby-all 0.8.15-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)