StringExt extension

  • @Author: chuxiong
  • @Created at: 2023/3/2 4:03 下午
  • @Email:
  • @Company: 嘉联支付
  • description String扩展:
on

Properties

defaultMoneyStr → String

Available on String?, provided by the StringExt extension

no setter
defaultString → String

Available on String?, provided by the StringExt extension

no setter
formatMoney → String

Available on String?, provided by the StringExt extension

no setter
fullToHalf → String

Available on String?, provided by the StringExt extension

字符串全角转半角
no setter
isNullOrEmpty → bool

Available on String?, provided by the StringExt extension

no setter
isUrl → bool

Available on String?, provided by the StringExt extension

no setter
isValidChineseMobile → bool

Available on String?, provided by the StringExt extension

no setter
maskMobile → String

Available on String?, provided by the StringExt extension

no setter
notNullStr → String

Available on String?, provided by the StringExt extension

no setter
parseIntWithDefault → int

Available on String?, provided by the StringExt extension

no setter
thousandSeparated → String

Available on String?, provided by the StringExt extension

no setter

Methods

containsIgnoreCase(String other) → bool

Available on String?, provided by the StringExt extension

字符串匹配/搜索,忽略大小写
defaultStrWithEmpty({String? emptyStr}) → String

Available on String?, provided by the StringExt extension

moneyFormatWithUnit(bool autoMoneyUnit) → String

Available on String?, provided by the StringExt extension

removeUrlProtocol() → String

Available on String?, provided by the StringExt extension

substringSafe(int start, [int? end]) → String

Available on String?, provided by the StringExt extension

toDouble() → double?

Available on String?, provided by the StringExt extension

toInt() → int?

Available on String?, provided by the StringExt extension