-
public final class StringsKt
-
-
Method Summary
Modifier and Type Method Description final StringcheckMaxLengthAllowed(String text)Checks that the text has no more than 50000 chars. final Stringnamespace(String $self)Extract a namespace from a qualified name (ie namespace:name). final Stringname(String $self)Extract a name from a qualified name (ie namespace:name). final Pair<String, String>namespaceAndName(String $self)Extract namespace and name from a qualified name (ie namespace:name). final StringwithNamespace(String $self, String namespace)Add the specified namespace to a name if the name does not contains yet a namespace, and return the result. final StringchangeNamespace(String $self, String newNamespace)Replace the current namespace with the new namespace. final StringwithoutNamespace(String $self, String namespace)Remove the specified namespace from a qualified name if this qualified name contains the namespace, and return the result. final Stringconcat(String s1, String s2)Concat two strings and manage intermediate punctuation. -
-
Method Detail
-
checkMaxLengthAllowed
final String checkMaxLengthAllowed(String text)
Checks that the text has no more than 50000 chars. Else cuts the String.
-
namespace
final String namespace(String $self)
Extract a namespace from a qualified name (ie namespace:name).
-
namespaceAndName
final Pair<String, String> namespaceAndName(String $self)
Extract namespace and name from a qualified name (ie namespace:name).
-
withNamespace
final String withNamespace(String $self, String namespace)
Add the specified namespace to a name if the name does not contains yet a namespace, and return the result.
-
changeNamespace
final String changeNamespace(String $self, String newNamespace)
Replace the current namespace with the new namespace.
-
withoutNamespace
final String withoutNamespace(String $self, String namespace)
Remove the specified namespace from a qualified name if this qualified name contains the namespace, and return the result.
-
-
-
-