Java · Searching and Counting

Searching and Counting

6.0.0-rc.1 · 91a27bdd

long position = StringZilla.indexOf(haystack, needle);  // first match, or -1 (cf. String.indexOf, on bytes)
long runeCount = StringZilla.countRunes(text);          // cf. String.codePointCount