Here you can find the source of lowerToUpperLatin(byte[] b)
public static void lowerToUpperLatin(byte[] b)
//package com.java2s; public class Main { public static void lowerToUpperLatin(byte[] b) { int len = b.length; for (int i = 0; i < len; i++) { int ch = b[i] & 0xff; if (ch == '\0') { break; } else if ((ch >= 0x61 && ch <= 0x7a) || (ch >= 0xe0 && ch <= 0xf6) || (ch >= 0xf8 && ch <= 0xfe)) { b[i] = (byte) (ch - 0x20); }//from w w w. ja v a 2 s . co m } } }