com.ontotext.wsmo4j.common
Class CharUtil

java.lang.Object
  extended by com.ontotext.wsmo4j.common.CharUtil

public class CharUtil
extends Object

Utility class to check if a character is a letter, a digit, an extender, ...

 Created on Nov 17, 2006
 Committed by $Author: nathaliest $
 $Source$,
 

Version:
$Revision: 1890 $ $Date: 2006-11-17 18:40:14 +0200 (Fri, 17 Nov 2006) $
Author:
Nathalie Steinmetz, DERI Innsbruck

Constructor Summary
CharUtil()
           
 
Method Summary
 boolean isAlpha(char chr)
          This method checks if a given character is a valid basechar
 boolean isCombiningChar(char chr)
          This method checks if a given character is a combining char
 boolean isDigit(char chr)
          This method checks if a given character is a valid digit
 boolean isExtender(char chr)
          This method checks if a given character is an extender
 boolean isLetter(char chr)
          This method checks if a given character is a valid basechar or a valid ideograph
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharUtil

public CharUtil()
Method Detail

isLetter

public boolean isLetter(char chr)
This method checks if a given character is a valid basechar or a valid ideograph

Parameters:
chr - character
Returns:
true if chr is a valid letter or false otherwise

isAlpha

public boolean isAlpha(char chr)
This method checks if a given character is a valid basechar

Parameters:
chr - character
Returns:
true if chr is a valid basechar or false otherwise

isDigit

public boolean isDigit(char chr)
This method checks if a given character is a valid digit

Parameters:
chr - character
Returns:
true if chr is a valid digit or false otherwise

isCombiningChar

public boolean isCombiningChar(char chr)
This method checks if a given character is a combining char

Parameters:
chr - character
Returns:
true if chr is a combining char or false otherwise

isExtender

public boolean isExtender(char chr)
This method checks if a given character is an extender

Parameters:
chr - character
Returns:
true if chr is an extender or false otherwise


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.