List of utility methods to do ASCII from
byte | toASCIIUpperCase(byte b) to ASCII Upper Case if ('a' <= b && b <= 'z') { return (byte) (b - ('a' - 'A')); return b; |
String | toASCIIUpperCase(String s) to ASCII Upper Case int len = s.length(); StringBuilder buffer = new StringBuilder(len); for (int i = 0; i < len; i++) { char c = s.charAt(i); if ('a' <= c && c <= 'z') { buffer.append((char) (c - ('a' - 'A'))); } else { buffer.append(c); ... |