Parsexx_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
-
assertPositiveInt(int? in_num)
→ int?
-
1, +
-
assertUInt(int? in_num)
→ int?
-
0, +
-
formatDurationToStr(Duration duration, {FormatxxDurationType_e type = FormatxxDurationType_e.hhMMSS, SeparatorxxType_e separator = SeparatorxxType_e.Symbol})
→ String
-
将Duration转
HH:
MM:SS格式的字符串
-
formatFileSizeToStr(int fileSize, {int position = 2, int scale = 1024, int specified = -1})
→ String
-
格式化输出文件大小,自动转为人性化的单位输出
-
formatNumStr(int num)
→ String
-
-
formatTimeToStr(DateTime time)
→ String
-
-
parseDurationStr2Seconds(String str)
→ int
-
-
parseIntStr2Enum<T>(String? str, T? toEnum(int))
→ T?
-
-
parseListDynamicToInt(List in_list)
→ List<int>
-
-
parseListIntToEnum<T>(List<int> in_list, T? toEnum(int item))
→ List<T>
-
-
parseListItemToInt<T>(List<T> in_list, int toInt(T item))
→ List<int>
-
-
tryFormatDurationToStr(Duration? duration, {FormatxxDurationType_e type = FormatxxDurationType_e.hhMMSS, SeparatorxxType_e separator = SeparatorxxType_e.Symbol})
→ String?
-
-
tryFormatFileSizeToStr(int? fileSize, {int position = 2, int scale = 1024, int specified = -1})
→ String?
-
-
tryParseStringToListInt(String data)
→ List<int>?
-