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
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标准化