Here you can find the source of upperToLowerLatin(byte[] b)
public static void upperToLowerLatin(byte[] b)
//package com.java2s; public class Main { public static void upperToLowerLatin(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 >= 0x41 && ch <= 0x5a) || (ch >= 0xc0 && ch <= 0xd6) || (ch >= 0xd8 && ch <= 0xde)) { b[i] = (byte) (ch + 0x20); }/*from w w w . j a v a2s. c om*/ } } }