Package eu.bandm.tools.util.java
Class Strings
java.lang.Object
eu.bandm.tools.util.java.Strings
Utility class for string manipulation.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
capitalize
(String s) Turns the very first character to upper case.static String
Delivers easily readable String representation.static String
Deliver the prefix of the given string of the given max length.static String
Deliver the prefix of the given string of the given max length.static String[]
splitByFirst
(String text) Takes the very first character as delimiter for splitting the rest of the string.static String
Turns the very first character to lower case.
-
Field Details
-
standard_suffix
Will be appended to a truncated string.- See Also:
-
-
Method Details
-
prefix
Deliver the prefix of the given string of the given max length. Append the suffix if the input has been truncated. -
prefix
Deliver the prefix of the given string of the given max length. Append thestandard_suffix
if the input has been truncated. -
hash32
Delivers easily readable String representation. -
uncapitalize
Turns the very first character to lower case. -
capitalize
Turns the very first character to upper case. -
splitByFirst
Takes the very first character as delimiter for splitting the rest of the string. The last character is ignored if it is the delimiter, so no empty sub-string is recognized at the end of the list. Is somehow equivalent to the xslt codesplitbyfirst
in doctypes/d2d_gp/libbasic.xslt
-