efxtools.sample.ae.helper
Class CharTools

java.lang.Object
  extended by efxtools.sample.ae.helper.CharTools

public class CharTools
extends java.lang.Object

Helper class that offers several functions on characters, mainly for determining if a given character belongs to a certain category of characters.

Author:
Author of EfXTools

Constructor Summary
CharTools()
           
 
Method Summary
static boolean isAt(char c)
          Determines whether c is an "@".
static boolean isBullet(char c)
          Determines whether c is possible icon of a bulletpoint of an unordererd list.
static boolean isComma(char c)
          Determines whether c is a comma.
static boolean isCurrencySymbol(char c)
          Determines whether c is one of the most common currency symbols, namely €, $, £ or ¥.
static boolean isFullStop(char c)
          Determines whether c is a period, a question mark or an exclamation mark.
static boolean isHyphen(char c)
          Determines whether c is one of the versions of hyphens.
static boolean isOpeningBracket(char c)
          Determines whether c is one of the four types of an opening bracket.
static boolean isPeriod(char c)
          Determines whether c is a period.
static boolean isQuotationMark(char c)
          Determines whether c is any of the existing quotation mark characters.
static boolean isRightParenthesis(char c)
          Determines whether c is one of the four types of a closing bracket.
static boolean isTendencySymbol(char c)
          Determines whether c is tendency symbol, i.e. plus or a minus.
static boolean isUmambiguousEndMark(char c)
          Determines whether c is one of the characters, which can be seen as unambiguous end mark, i.e. it is a question mark or an exclamation mark.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharTools

public CharTools()
Method Detail

isFullStop

public static boolean isFullStop(char c)
Determines whether c is a period, a question mark or an exclamation mark.

Parameters:
c - The character
Returns:
true iff. c is a full stop.

isUmambiguousEndMark

public static boolean isUmambiguousEndMark(char c)
Determines whether c is one of the characters, which can be seen as unambiguous end mark, i.e. it is a question mark or an exclamation mark.

Parameters:
c - The character
Returns:
true iff. c is an unambiguous end mark

isPeriod

public static boolean isPeriod(char c)
Determines whether c is a period.

Parameters:
c - The character
Returns:
true iff. c is a period.

isComma

public static boolean isComma(char c)
Determines whether c is a comma.

Parameters:
c - The character
Returns:
true iff. c is a comma.

isHyphen

public static boolean isHyphen(char c)
Determines whether c is one of the versions of hyphens.

Parameters:
c - The character
Returns:
true iff. c is a hyphen

isQuotationMark

public static boolean isQuotationMark(char c)
Determines whether c is any of the existing quotation mark characters.

Parameters:
c - The character
Returns:
true iff. c is a quaotation mark.

isOpeningBracket

public static boolean isOpeningBracket(char c)
Determines whether c is one of the four types of an opening bracket.

Parameters:
c - The character
Returns:
true iff. c is an opening bracket.

isRightParenthesis

public static boolean isRightParenthesis(char c)
Determines whether c is one of the four types of a closing bracket.

Parameters:
c - The character
Returns:
true iff. c is a closing bracket.

isBullet

public static boolean isBullet(char c)
Determines whether c is possible icon of a bulletpoint of an unordererd list.

Parameters:
c - The character
Returns:
true iff. c is a bullet.

isTendencySymbol

public static boolean isTendencySymbol(char c)
Determines whether c is tendency symbol, i.e. plus or a minus.

Parameters:
c - The character
Returns:
true iff. c is a tendency symbol

isAt

public static boolean isAt(char c)
Determines whether c is an "@".

Parameters:
c - The character
Returns:
true iff. c is "@".

isCurrencySymbol

public static boolean isCurrencySymbol(char c)
Determines whether c is one of the most common currency symbols, namely €, $, £ or ¥.

Parameters:
c - The character
Returns:
true iff. c is €, $, £ or ¥