int (int ch, int fromIndex) { if ((char) ch != ch) return -1; if (fromIndex < 0) fromIndex = 0; int i = fromIndex + offset; for ( ; fromIndex < count; fromIndex++) if (value[i++] == ch) return fromIndex; return -1; }