Here you can find the source of getSpecialCharLength(char c)
private static int getSpecialCharLength(char c)
//package com.java2s; public class Main { private static int getSpecialCharLength(char c) { if (isLetter(c)) { return 1; } else {//from w w w . java2 s.c o m return 2; } } public static boolean isLetter(char c) { int k = 0x80; return c / k == 0 ? true : false; } }