-
public final class StringKt
-
-
Method Summary
Modifier and Type Method Description final static StringaddPrefix(String $self, CharSequence prefix)If this string starts with the given prefix, returns this string. final static StringaddSuffix(String $self, CharSequence suffix)If this string ends with the given suffix, returns this string. -
-
Method Detail
-
addPrefix
final static String addPrefix(String $self, CharSequence prefix)
If this string starts with the given prefix, returns this string. Otherwise, returns a copy of this string after adding the prefix.
-
addSuffix
final static String addSuffix(String $self, CharSequence suffix)
If this string ends with the given suffix, returns this string. Otherwise, returns a copy of this string after adding the suffix.
-
-
-
-