StringExtensions extension
- on
Properties
Methods
-
capitalize(
) → String -
Available on String, provided by the StringExtensions extension
Returns a new String by transforming the first character ofthisString 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 offromreplaced 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_caseintoCamelCase. -
toSnakeCase(
) → String -
Available on String, provided by the StringExtensions extension
Returns a new String by turningCamelCaseintosnake_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.