public class StringsKt
@NotNull
public static java.lang.String checkMaxLengthAllowed(@NotNull
java.lang.String text)
Checks that the text has no more than 50000 chars. Else cuts the String.
@NotNull
public static java.lang.String namespace(@NotNull
java.lang.String $receiver)
Extract a namespace from a qualified name (ie namespace:name).
@NotNull
public static java.lang.String name(@NotNull
java.lang.String $receiver)
Extract a name from a qualified name (ie namespace:name).
@NotNull
public static kotlin.Pair<java.lang.String,java.lang.String> namespaceAndName(@NotNull
java.lang.String $receiver)
Extract namespace and name from a qualified name (ie namespace:name).
@NotNull
public static java.lang.String withNamespace(@NotNull
java.lang.String $receiver,
@NotNull
java.lang.String namespace)
Add the specified namespace to a name if the name does not contains yet a namespace, and return the result.
@NotNull
public static java.lang.String changeNamespace(@NotNull
java.lang.String $receiver,
@NotNull
java.lang.String newNamespace)
Replace the current namespace with the new namespace.
@NotNull
public static java.lang.String withoutNamespace(@NotNull
java.lang.String $receiver,
@Nullable
java.lang.String namespace)
Remove the specified namespace from a qualified name if this qualified name contains the namespace, and return the result.
@NotNull
public static java.lang.String concat(@Nullable
java.lang.String s1,
@Nullable
java.lang.String s2)
Concat two strings and manage intermediate punctuation.