CStr extension

on

Methods

allMatchs(String regexp) Iterable<RegExpMatch>

Available on String, provided by the CStr extension

查找字符串中所有匹配正则表达式的子字符串
combine(String gap, String tail) String

Available on String, provided by the CStr extension

将两个字符串通过gap连接起来,并去除gap在连接处的重复部分
firstMatch(String regexp) RegExpMatch?

Available on String, provided by the CStr extension

查找字符串中第一个匹配正则表达式的子字符串
isMatch(String regexp) bool

Available on String, provided by the CStr extension

判断字符串是否匹配正则表达式
print() String

Available on String, provided by the CStr extension

打印字符串到控制台
splitLeft(String gap) → (String?, String?)

Available on String, provided by the CStr extension

通过gap字符串分割字符串, 从前到后分析
splitRight(String gap) → (String?, String?)

Available on String, provided by the CStr extension

通过gap字符串分割字符串, 从后到前分析
trimStringLeft(String trim) String

Available on String, provided by the CStr extension

移除字符串左侧的指定子字符串
trimStringRight(String trim) String

Available on String, provided by the CStr extension

移除字符串右侧的指定子字符串

Operators

operator -(String src) String

Available on String, provided by the CStr extension

移除字符串中的指定子字符串