static int charAtAsIntOrMinus1(CharSequence s, int i) { ret i >= 0 && i < l(s) ? (int) s.charAt(i) : -1; }