public class CBStringUtil
extends java.lang.Object
Constructor and Description |
---|
CBStringUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
compare(java.lang.String str1,
java.lang.String str2)
按照ascii(字典)顺序比较字符大小
|
static boolean |
containGreaterThan(java.lang.String srcString,
java.lang.String desString,
int number)
含子串是否超过一定次数
|
static boolean |
containRegexGreaterThan(java.lang.String srcString,
java.lang.String desString,
int number)
含模式串是否超过一定次数
|
static int |
containRegexStatistics(java.lang.String srcString,
java.lang.String desString)
含模式串的次数
|
static int |
containStatistics(java.lang.String srcString,
java.lang.String desString)
含子串的次数
|
static boolean |
isEmptyOrNull(java.lang.String in)
字符串是否为null或者长度为0
|
public static boolean isEmptyOrNull(java.lang.String in)
in
- 输入字符串public static int compare(java.lang.String str1, java.lang.String str2)
str1
- 字符串1str2
- 字符串2public static boolean containGreaterThan(java.lang.String srcString, java.lang.String desString, int number)
srcString
- 原串desString
- 目标子串number
- 次数public static int containStatistics(java.lang.String srcString, java.lang.String desString)
srcString
- 原串desString
- 目标子串public static boolean containRegexGreaterThan(java.lang.String srcString, java.lang.String desString, int number)
srcString
- 原串desString
- 目标模式串number
- 次数public static int containRegexStatistics(java.lang.String srcString, java.lang.String desString)
srcString
- 原串desString
- 目标模式串