-
- All Implemented Interfaces:
public final class StringsKt
-
-
Method Summary
Modifier and Type Method Description final static StringcheckMaxLengthAllowed(String text)Checks that the text has no more than 50000 chars. final static Stringnamespace(String $self)Extract a namespace from a qualified name (ie namespace:name). final static Stringname(String $self)Extract a name from a qualified name (ie namespace:name). final static Pair<String, String>namespaceAndName(String $self)Extract namespace and name from a qualified name (ie namespace:name). final static 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 static StringchangeNamespace(String $self, String newNamespace)Replace the current namespace with the new namespace. final static 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 static Stringconcat(String s1, String s2)Concat two strings and manage intermediate punctuation. final static Stringnormalize(String $self, Locale locale)final static StringallowDiacriticsInRegexp(String s)-
-
Method Detail
-
checkMaxLengthAllowed
final static String checkMaxLengthAllowed(String text)
Checks that the text has no more than 50000 chars. Else cuts the String.
-
namespace
final static String namespace(String $self)
Extract a namespace from a qualified name (ie namespace:name).
-
name
final static String name(String $self)
Extract a name from a qualified name (ie namespace:name).
-
namespaceAndName
final static Pair<String, String> namespaceAndName(String $self)
Extract namespace and name from a qualified name (ie namespace:name).
-
withNamespace
final static 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 static String changeNamespace(String $self, String newNamespace)
Replace the current namespace with the new namespace.
-
withoutNamespace
final static 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.
-
concat
final static String concat(String s1, String s2)
Concat two strings and manage intermediate punctuation.
-
allowDiacriticsInRegexp
final static String allowDiacriticsInRegexp(String s)
-
-
-
-