org.ojalgo.netio
Class ASCII

java.lang.Object
  extended by org.ojalgo.netio.ASCII

public abstract class ASCII
extends Object

http://www-ccs.ucsd.edu/c/ctype.html http://www.lammertbies.nl/comm/info/ascii-characters.html

Author:
apete

Field Summary
static char COMMA
           
static char CR
           
static char DECIMAL_NINE
           
static char DECIMAL_ZERO
           
static char DEL
           
static char HT
           
static char LF
           
static char LOWERCASE_A
           
static char LOWERCASE_Z
           
static char NULL
           
static char SEMICOLON
           
static char SP
           
static char UNDERSCORE
           
static char UPPERCASE_A
           
static char UPPERCASE_Z
           
 
Method Summary
static boolean isAlphabetic(int aChar)
           
static boolean isAlphanumeric(int aChar)
           
static boolean isAscii(int aChar)
           
static boolean isControl(int aChar)
           
static boolean isDigit(int aChar)
           
static boolean isGraph(int aChar)
           
static boolean isLowercase(int aChar)
           
static boolean isPrintable(int aChar)
           
static boolean isPunctuation(int aChar)
          Not sure this is correct
static boolean isSpace(int aChar)
           
static boolean isUppercase(int aChar)
           
static int toLowercase(int aChar)
          If aChar is an uppercase character it is converted to the corresponding lowercase character.
static int toPrintable(int aChar)
           
static int toUppercase(int aChar)
          If aChar is a lowercase character it is converted to the corresponding uppercase character.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMA

public static char COMMA

CR

public static char CR

DECIMAL_NINE

public static char DECIMAL_NINE

DECIMAL_ZERO

public static char DECIMAL_ZERO

DEL

public static char DEL

HT

public static char HT

LF

public static char LF

LOWERCASE_A

public static char LOWERCASE_A

LOWERCASE_Z

public static char LOWERCASE_Z

NULL

public static char NULL

SEMICOLON

public static char SEMICOLON

SP

public static char SP

UNDERSCORE

public static char UNDERSCORE

UPPERCASE_A

public static char UPPERCASE_A

UPPERCASE_Z

public static char UPPERCASE_Z
Method Detail

isAlphabetic

public static boolean isAlphabetic(int aChar)

isAlphanumeric

public static boolean isAlphanumeric(int aChar)

isAscii

public static boolean isAscii(int aChar)
Returns:
True if aChar is an ASCII character.

isControl

public static boolean isControl(int aChar)

isDigit

public static boolean isDigit(int aChar)

isGraph

public static boolean isGraph(int aChar)

isLowercase

public static boolean isLowercase(int aChar)
Returns:
true if aChar is an lowercase character

isPrintable

public static boolean isPrintable(int aChar)

isPunctuation

public static boolean isPunctuation(int aChar)
Not sure this is correct


isSpace

public static boolean isSpace(int aChar)

isUppercase

public static boolean isUppercase(int aChar)
Returns:
true if aChar is an uppercase character

toLowercase

public static int toLowercase(int aChar)
If aChar is an uppercase character it is converted to the corresponding lowercase character. Otherwise it is returned unaltered.


toPrintable

public static int toPrintable(int aChar)

toUppercase

public static int toUppercase(int aChar)
If aChar is a lowercase character it is converted to the corresponding uppercase character. Otherwise it is returned unaltered.