Java Char Lower Case toLowerCase(char c)

Here you can find the source of toLowerCase(char c)

Description

to Lower Case

License

Open Source License

Declaration

public static final char toLowerCase(char c) 

Method Source Code

//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);
    }
}

Related

  1. toLowerCase(char b)
  2. toLowerCase(char c)
  3. toLowerCase(char c)
  4. toLowerCase(char ch)
  5. toLowerCase(char ch)