| 程序包 | 说明 |
|---|---|
| com.github.houbb.chars.scan.api | |
| com.github.houbb.chars.scan.constant | |
| com.github.houbb.chars.scan.support.scan |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
ICharsScan
统一的字符串 scan
编写时注意几点:
1.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
CharsScanTypeEnum
对应的 code 用数字代替,比英文长字母稍微降低内存占用。
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractCharScan
抽象
1. thread-safe
私有变量,必须 new
new AbstractCharScan();
2.
|
class |
AbstractConditionCharScan
抽象
|
class |
AbstractExpandConditionCharScan
邮箱
核心思想:因为 @ 一般不多,所以这里首先寻找到 @,然后想两边 expand,直到不是 email 的时候截止。
|
class |
AddressConditionCharScan
地址
|
class |
AddressExpandConditionCharScan
expand 地址
核心思想:两边 expand,减少一次 keyword 的遍历判断
|
class |
BankCardConditionCharScan
银行卡
|
class |
BirthdayConditionCharScan
生日
个人感觉生日没必要,因为时间在日志中太常见,太重要,容易混淆。
|
class |
ChineseNameConditionCharScan
中文人名
TODO: 可以引入百家姓,甚至 NLP-人名。
|
class |
ChineseNameExpandConditionCharScan
中文人名
TODO: 可以引入百家姓,甚至 NLP-人名。
|
class |
EmailConditionCharScan
邮箱
|
class |
EmailExpandConditionCharScan
邮箱
核心思想:因为 @ 一般不多,所以这里首先寻找到 @,然后想两边 expand,直到不是 email 的时候截止。
|
class |
GPSConditionCharScan
GPS
TODO: GPS 的实现需要调整下,不然会与普通的金额混乱。
|
class |
IdNoConditionCharScan
身份证
|
class |
IPV4ConditionCharScan
GPS
yyyyMMdd
|
class |
MergeExpandConditionCharScan
邮箱
核心思想:因为 @ 一般不多,所以这里首先寻找到 @,然后想两边 expand,直到不是 email 的时候截止。
|
class |
MergeNameAddressConditionCharScan
已过时。
|
class |
MergeNumsConditionCharScan
合并的操作类。
|
class |
PassportConditionCharScan
护照
按照ICAO要求,全世界护照的号码均为9位拉丁字母或阿拉伯数字。
|
class |
PhoneConditionCharScan
手机
TODO: xxx-xxx
|
Copyright © 2023. All rights reserved.