程序包 cn.zhxu.bs.util
类 StringUtils
java.lang.Object
cn.zhxu.bs.util.StringUtils
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static intcontainCount(String src, int from, int to, char[] targets) 查找 src 里包含几个 targetstatic intstatic String首字母小写static booleanstatic booleanisNotBlank(String str) static booleanisSqlColumnChar(char c) static booleansqlContains(String sql, String column) 快速判断 SQL 片段中是否包含某个列static StringtoHyphenation(String src, String hyphenation) 驼峰风格风格转连字符风格static StringtoUnderline(String src) 驼峰风格风格转下划线风格
-
构造器详细资料
-
StringUtils
public StringUtils()
-
-
方法详细资料
-
isNotBlank
- 参数:
str- 字符串- 返回:
- 是否不空
-
isBlank
- 参数:
str- 字符串- 返回:
- 是否为空
-
firstCharToLoweCase
首字母小写- 参数:
str- 字符串- 返回:
- String
-
containCount
查找 src 里包含几个 target- 参数:
src- 源字符串from- 开始计数下标(包含)to- 结束计数下标(不包含)targets- 目标字符- 返回:
- 个数
-
toHyphenation
驼峰风格风格转连字符风格- 参数:
src- 驼峰字符串hyphenation- 连字符- 返回:
- 连字符风格字符串
-
toUnderline
驼峰风格风格转下划线风格- 参数:
src- 驼峰字符串- 返回:
- 下划风格字符串
-
sqlContains
快速判断 SQL 片段中是否包含某个列- 参数:
sql- SQL 片段column- 列名- 返回:
- sql 中是否包含 column
-
isSqlColumnChar
public static boolean isSqlColumnChar(char c) -
countOf
-