⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 unicodecharacterutils.java

📁 StandBayeMail
💻 JAVA
字号:
/** * <p>Title: StandBayeMail </p> * <p>Description: A bayesian spam filter</p> * <p>Copyright: Copyright (c) 2004 by Luca M. Viola</p> * <p>Company: 3AM.it</p> * @author Luca M. Viola <luca@3am.it> * @version 1.0  This program is free software; you can redistribute it and/or  modify it under the terms of the GNU General Public License  as published by the Free Software Foundation; either version 2  of the License, or (at your option) any later version.  This program is distributed in the hope that it will be useful,  but WITHOUT ANY WARRANTY; without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  GNU General Public License for more details.  You should have received a copy of the GNU General Public License  along with this program; if not, write to the Free Software  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. */package StandBayeMail;public class UnicodeCharacterUtils implements CharacterUtils{  private UnicodeCharacterUtils()  {  }  public boolean isAlphaNumeric( String ch )  {    char c=ch.charAt(0);    if( ch!=null )      if( !ch.equals("") )        return (Character.isLetterOrDigit(c) || c == '$' || c == '\'' || c == '.' || c == '-' );        //return Character.isLetterOrDigit(c);    return false;  }  public boolean isAlphabetic( String ch )  {    if( ch!=null )      if( !ch.equals("") )        return Character.isLetter(ch.charAt(0));    return false;  }  public boolean isNumeric( String ch )  {    if( ch!=null )      if( !ch.equals("") )        return Character.isDigit(ch.charAt(0));    return false;  }  public boolean isAlphaNumeric( char ch )  {    return Character.isLetterOrDigit(ch);  }  public boolean isAlphabetic( char ch )  {    return Character.isLetter(ch);  }  public boolean isNumeric( char ch )  {    return Character.isDigit(ch);  }  public static UnicodeCharacterUtils getUtils()  {    return new UnicodeCharacterUtils();  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -