StringExtensions extension
- on
Properties
Methods
-
capitalize(
) → String -
Available on String, provided by the StringExtensions extension
Returns a new String by transforming the first character ofthis
String to uppercase and all other characters to lowercase. -
replaceLast(
Pattern from, String to) → String -
Available on String, provided by the StringExtensions extension
Creates a new string with the last occurrence offrom
replaced byto
. -
splitOnce(
Pattern p) → Tuple2< String, String> -
Available on String, provided by the StringExtensions extension
Splits the string on the first occurrence of the specified delimiter and returns prefix before delimiter and suffix after delimiter. -
toCamelCase(
) → String -
Available on String, provided by the StringExtensions extension
Returns a new String by turningsnake_case
intoCamelCase
. -
toSnakeCase(
) → String -
Available on String, provided by the StringExtensions extension
Returns a new String by turningCamelCase
intosnake_case
. -
trimLeftLength(
int length) → String -
Available on String, provided by the StringExtensions extension
The string trimmed from the left side by the givenlength
. -
trimLength(
int length) → String -
Available on String, provided by the StringExtensions extension
The string trimmed from both sides by the givenlength
. -
trimRightLength(
int length) → String -
Available on String, provided by the StringExtensions extension
The string trimmed from the right side by the givenlength
.