You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// codePointAt returns the integer codePoint, so we need to convert to a string.
56
+
// codePointAt returns integers for both the high and low end. The invalid strings are filtered out by `toUnicode`, but we need to re-count the index, therefore the rank.
57
+
// rank is 1-indexed, so we need to offset for that to make this predicate 0-indexed.
58
+
result=
59
+
rank[i+1](stringchar,intcharIndex|
60
+
char=s.codePointAt(charIndex).toUnicode()
61
+
|
62
+
charorderbycharIndex
63
+
)
64
+
}
50
65
51
66
/**
52
-
* Gets the length of `s` in codepoints.
67
+
* Gets the number of unicode codepoints in `s` not counting unpaired surrogates.
0 commit comments