-
public final class StringExtensionKt
-
-
Method Summary
Modifier and Type Method Description final static BooleanisNotNullOrEmpty(CharSequence $self)final static <C extends CharSequence, R, R extends Any> RifNullOrEmpty(C $self, Function0<R> defaultValue)final static BooleanisChinese(Character $self)是否是中文 final static BooleanisChinese(String $self)是否是中文 final static BooleanisEnglish(String $self)是否是英文 final static Stringformat(String $self, Object args)final static StringreplaceAll(CharSequence $self, String oldValue, String newValue)final static BooleancheckPhoneNumber(String $self)验证手机号码 final static StringencodeMd5(String $self)计算字符串的md5 -
-
Method Detail
-
isNotNullOrEmpty
final static Boolean isNotNullOrEmpty(CharSequence $self)
-
ifNullOrEmpty
@SinceKotlin(version = 1.3) final static <C extends CharSequence, R, R extends Any> R ifNullOrEmpty(C $self, Function0<R> defaultValue)
-
replaceAll
final static String replaceAll(CharSequence $self, String oldValue, String newValue)
-
checkPhoneNumber
final static Boolean checkPhoneNumber(String $self)
验证手机号码
-
-
-
-