StringExtension extension

on

Properties

hasZh bool
是否含有中文
no setter
isAllNumber bool
是否是自然数
no setter
isEmail bool
是否是邮箱
no setter
isIdCard18 bool
是否是身份证
no setter
isIp bool
是否是ip地址
no setter
isPhone bool
是否是手机号
no setter
isPositiveNumber bool
正数
no setter
isTel bool
是否是座机号码
no setter
isUrl bool
是否是url
no setter
toBool bool
no setter
toDateTime DateTime?
no setter
toDouble double?
no setter
toInt int?
no setter

Methods

containsList(List<String> keys) bool
多关键字模糊匹配
ellipsis([int? length]) String
字符串中间截取
hasMatch(String source) bool
正则表达式匹配
isIncludeIndex([int min = 10, int max = 20]) bool
长度范围