StringUtilxx_c class

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

compareExtend(String left, String right) → int
扩展名称排序
getFileName(String in_path, {bool removeEXT = false, bool useRigthDot = true}) → String
获取文件或文件夹名称
getFileNameEXT(String in_path) → String?
获取文件扩展名 即识别最后一个.之后的字符串
getFirstCharPinyin(String str, {bool enableAZ = true, bool enableNum = true}) → String?
会忽略str开头的空白符
getFirstCharPinyinFirstChar(String str) → String?
只返回str的第一个字符的类别
getParentDirPath(String in_path) → String?
获取文件或文件夹的父目录路径
isCode_AZ(int code) → bool
isCode_az(int code) → bool
isCode_AZaz(int code) → bool
isCode_num(int code) → bool
isIgnoreCaseContains(String longStr, String shortStr) → bool
判断longStr是否包含shortStr,忽略大小写
isIgnoreCaseContainsAny(String str1, String str2) → bool
判断str1和str2中长的字符串是否包含短的字符串,忽略大小写
isIgnoreCaseEqual(String left, String right) → bool
isNotEmptyAndIgnoreCaseContainsAny(String str1, String str2) → bool
是否str1和str2都非空,并且其中长的字符串包含端的字符串,忽略大小写
removeAllSpace(String str) → String
移除所有空白符号
removeAllSpaceMayNull(String? str) → String?
移除str所有空白符号,如果str为null或移除空白符号后是空字符串则返回null
removeBetweenSpace(String str, {bool removeLine = true, bool subLeft = true, bool subRight = true}) → String
移除str两边的(空格|制表符\t)
removeBetweenSpaceMayNull(String? str, {bool removeLine = true, bool subLeft = true, bool subRight = true}) → String?
移除str两端的(空格|制表符\t), 如果str为null或移除空白符号后得到空字符串则返回null
toCode_AZ(int code) → int
转为大写字母
toCode_az(int code) → int
转为小写字母
toCode_mayAZ(int code) → int
如果是字母,则转为大写A-Z,否则返回code
toCode_mayaz(int code) → int?
如果是字母,则转为大写a-z,否则返回null
toCode_tryAZ(int code) → int?
如果是字母,则转为大写A-Z,否则返回null
toCode_tryaz(int code) → int?
如果是字母,则转为大写a-z,否则返回null
toStandardPath(String path) → String
将 路径 规范化,去除多余的 / 或 \
toUnixStandardPath(String path) → String
将路径unix标准化

Constants

CODE_0 → const int
CODE_9 → const int
CODE_A → const int
CODE_a → const int
CODE_Z → const int
CODE_z → const int