文件名称:src
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2016-01-15
- 文件大小:
- 5kb
- 下载次数:
- 0次
- 提 供 者:
- 1***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
一个功能强大的字符串裂解类,可以用于解释器程序,词法分析程序的前身。你还为java的split功能有限而苦恼吗,你还为可恶的正则表达式的复杂度和健壮性而苦恼吗。该类可以满足你的需求,可以以包含,排除两种方式裂解,可以包含分隔符,不包含分隔符,可以区分大小写,也可以不区分,总之,基本可以满足大部分需求了,注意该算法只考虑功能强大,不考虑效率问题,不一定能够适合大规模批量生产。理解示例:
原字符串:12a345B67cc890
规则符:a,b,cc
裂解方式:包含分隔符,区分大小写
包含裂解结果
[12a, 345B67cc, 890]
排除裂解结果
[12, a345B67, cc890]
裂解方式:不包含分隔符,区分大小写
包含裂解结果
[12, 345B67, 890]
排除裂解结果
[a, cc]
裂解方式:包含分隔符,不区分大小写
包含裂解结果
[12a, 345B, 67cc, 890]
排除裂解结果
[12, a345, B67, cc890]
裂解方式:不包含分隔符,不区分大小写
包含裂解结果
[12, 345, 67, 890]
排除裂解结果
[a, B, cc]-A powerful string splitting class, can be used for the interpreter program, the predecessor of the lexical analysis program. You also for the split Java function is limited and distressed, you also for the complexity and robustness of the regular expression of the regular expression of distress. The class can meet your needs, can be included to exclude cracking in two ways, can contain delimiters, does not contain delimiters, can be case sensitive, also can not distinguish. In short, the basic can meet most of the demand, note that the algorithm only considers the powerful, not considering the question of efficiency, not suitable for mass production.
原字符串:12a345B67cc890
规则符:a,b,cc
裂解方式:包含分隔符,区分大小写
包含裂解结果
[12a, 345B67cc, 890]
排除裂解结果
[12, a345B67, cc890]
裂解方式:不包含分隔符,区分大小写
包含裂解结果
[12, 345B67, 890]
排除裂解结果
[a, cc]
裂解方式:包含分隔符,不区分大小写
包含裂解结果
[12a, 345B, 67cc, 890]
排除裂解结果
[12, a345, B67, cc890]
裂解方式:不包含分隔符,不区分大小写
包含裂解结果
[12, 345, 67, 890]
排除裂解结果
[a, B, cc]-A powerful string splitting class, can be used for the interpreter program, the predecessor of the lexical analysis program. You also for the split Java function is limited and distressed, you also for the complexity and robustness of the regular expression of the regular expression of distress. The class can meet your needs, can be included to exclude cracking in two ways, can contain delimiters, does not contain delimiters, can be case sensitive, also can not distinguish. In short, the basic can meet most of the demand, note that the algorithm only considers the powerful, not considering the question of efficiency, not suitable for mass production.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
src\pub\string\StringArray.java
...\...\......\StringObject.java
...\...\......\StringSplit.java
...\...\string
...\pub
src