public class InnerCharUtil extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static Set<Character> |
DEFAULT_PREFIX_SET
默认的前缀集合
|
| 构造器和说明 |
|---|
InnerCharUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
appendChars(StringBuilder stringBuilder,
char[] chars,
int startIndex,
int endIndex)
添加指定范围内的 char
注意:这里不做各种下标判空等校验,提升性能。
|
static int |
getCharInt(char c)
获取 int char 对应的真实值
|
static Set<Character> |
getCharSet(String text)
获取对应的集合
|
static boolean |
isAddressChar(char c)
是否为地址
|
static boolean |
isAddressKeyword(char c)
是否为地址关键词
|
static boolean |
isEmilChar(char c) |
static boolean |
isValidDate(StringBuilder buffer,
int startIx)
是否为合法的日期
|
static int |
parseInt(String text)
转换为整数
|
public static boolean isAddressKeyword(char c)
c - 字符public static boolean isValidDate(StringBuilder buffer, int startIx)
buffer - bufferstartIx - 开始下标public static int parseInt(String text)
text - 文本public static int getCharInt(char c)
c - 字符@CommonEager public static Set<Character> getCharSet(String text)
text - 文本public static void appendChars(StringBuilder stringBuilder, char[] chars, int startIndex, int endIndex)
stringBuilder - 缓存chars - 原始数组startIndex - 开始位置endIndex - 完结位置public static boolean isAddressChar(char c)
c - 字符public static boolean isEmilChar(char c)
Copyright © 2023. All rights reserved.