StringUtil

StringUtil

字符串工具类

Constructor

new StringUtil()

Source:
Author:
  • ycx

Members

BlankStr :string

Source:
空字符串
Type:
  • string

RandomStr :string

Source:
Type:
  • string

Methods

(static) hasAllEmpty(…strs) → {boolean}

Source:
Author:
  • ycx 判断字符串列表是否全是空字符串
Parameters:
Name Type Attributes Description
strs string <repeatable>
被检测字符串列表
Returns:
是否不包含
Type
boolean

(static) hasBlank(…strs) → {boolean}

Source:
判断是否包含空白字符
Parameters:
Name Type Attributes Description
strs string <repeatable>
字符串列表
Returns:
Type
boolean

(static) hasEmpty(…strs) → {boolean}

Source:
Author:
  • ycx 判断字符串列表是否包含空字符串列表
Parameters:
Name Type Attributes Description
strs string <repeatable>
被检测字符串列表
Returns:
是否含有
Type
boolean

(static) isAllBlank(…strs)

Source:
判断给定字符串是否空白
Parameters:
Name Type Attributes Description
strs string <repeatable>
被检测字符列表

(static) isBlank(str) → {boolean}

Source:
Author:
  • ycx 判断字符串是否为空白 空白的定义如下:<br/> 1,字符串不存在 2,'' 3.全是' ' <br/>
Parameters:
Name Type Description
str string 被检测的字符
Returns:
是否是空白
Type
boolean

(static) isEmpty(str) → {boolean}

Source:
Parameters:
Name Type Description
str string 被检测的字符串
Returns:
是否为空
Type
boolean

(static) isNotBlank(str) → {boolean}

Source:
Author:
  • ycx 判断字符串是否不为空白 参考 isBank
Parameters:
Name Type Description
str string 被检测字符串
Returns:
是否不为空白
Type
boolean

(static) isNotEmpty(str) → {boolean}

Source:
Author:
  • ycx 检测字符串是否不为空</br> 参考 isEmpty
Parameters:
Name Type Description
str string 被检测字符串
Returns:
是否不为空
Type
boolean