Here you can find the source of toLowerCase(char c)
public static final char toLowerCase(char c)
//package com.java2s; /*//from w ww. java2 s .co m * This file is part of the Jose Project * see http://jose-chess.sourceforge.net/ * (c) 2002-2006 Peter Sch?fer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * */ public class Main { /** maps characters to rows/columns */ protected static short[] gCharacterMap; public static final char toLowerCase(char c) { return Character.toLowerCase(stripDiacritic(c)); } public static final void toLowerCase(char[] c) { for (int i = c.length - 1; i >= 0; i--) c[i] = toLowerCase(c[i]); } public static final char stripDiacritic(char c) { short ety = gCharacterMap[c]; if (ety == 0) return c; else return (char) (ety & 0x00ff); } }