public class Punctuation extends Object
| Constructor and Description | 
|---|
| Punctuation() | 
| Modifier and Type | Method and Description | 
|---|---|
| static boolean | has(String text)判断文本中是否包含标点符号 | 
| static boolean | is(char _char)判断一个字符是否是标点符号 | 
| static void | main(String[] args) | 
| static void | reload() | 
| static List<String> | seg(String text,
   boolean withPunctuation,
   char... reserve)将一段文本根据标点符号分割为多个不包含标点符号的文本
 可指定要保留那些标点符号 | 
public static void reload()
public static boolean has(String text)
text - public static List<String> seg(String text, boolean withPunctuation, char... reserve)
text - 文本withPunctuation - 是否保留标点符号reserve - 保留的标点符号列表public static boolean is(char _char)
_char - 字符public static void main(String[] args)
Copyright © 2014–2015 APDPlat. All rights reserved.