Java Utililty Methods Char Upper Case

List of utility methods to do Char Upper Case

Description

The list of methods to do Char Upper Case are organized into topic(s).

Method

bytetoUpperCase(byte b)
to Upper Case
return (byte) Character.toUpperCase((char) b);
byte[]toUpperCase(byte[] in)
to Upper Case
byte[] out = new byte[in.length];
for (int i = 0; i < in.length; i++) {
    out[i] = toUpperCase(in[i]);
return out;
chartoUpperCase(char a)
A toUpperCase routine which is faster to process the ASCII lowercase letters than Character.toUpperCase.
if (a < 'a') {
    return a;
if (a >= 'a' && a <= 'z') {
    return (char) (a + ('A' - 'a'));
return Character.toUpperCase(a);
chartoUpperCase(char a)
to Upper Case
return Character.toUpperCase(a);
chartoUpperCase(char a)
to Upper Case
if (a < 'a') {
    return a;
if (a >= 'a' && a <= 'z') {
    return (char) (a + ('A' - 'a'));
return Character.toUpperCase(a);
chartoUpperCase(char c)
to Upper Case
return Character.toUpperCase(stripDiacritic(c));
chartoUpperCase(char c)
to Upper Case
return isLowerCase(c) ? (char) (c - 'a' + 'A') : c;
chartoUpperCase(char c)
to Upper Case
return isLowerCase(c) ? (char) (c - alphaStep) : c;
chartoUpperCase(char ch)
to Upper Case
StringBuffer sb = new StringBuffer();
sb.append(ch);
char[] arr = sb.toString().toUpperCase().toCharArray();
return arr[0];
chartoUpperCase(char input)
to Upper Case
if (input >= 'a' && input <= 'z') {
    input -= 32;
return input;