Android Char Value Check getSpecialCharLength(char c)

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

Description

get Special Char Length

License

Open Source License

Declaration

private static int getSpecialCharLength(char c) 

Method Source Code

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

Related

  1. isLetter(char c)
  2. isOctal(char c)
  3. isWordSeparator(char c)
  4. isKana(char character)
  5. isWordSeparator(char c, char[] wordSeparators)
  6. getCharsLength(char[] chars, int specialCharsLength)
  7. getNthIndexOf(char c, String str, int n)
  8. displayWidth(char ch)
  9. getCharType(char c)