Android ASCII Check checkAscii(char c)

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

Description

check Ascii

Declaration

public static boolean checkAscii(char c) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean checkAscii(char c) {
        int hv = Integer.parseInt(Integer.toString(c));
        if (hv < 32 || hv > 126) {
            return false;
        }//from  w w w  .j av  a  2 s  . c  om
        return true;
    }
}

Related

  1. containsOnlyNonCrLfPrintableAscii(String s)
  2. containsOnlyPrintableAscii(String s)
  3. isPureAscii(String v)
  4. containsOnlyNonCrLfPrintableAscii( final String... values)
  5. containsOnlyNonCrLfPrintableAscii( final Collection values)
  6. isPrintableAscii(int c)