Class StringUtilitiesKt
-
- All Implemented Interfaces:
public final class StringUtilitiesKt
-
-
Method Summary
Modifier and Type Method Description final static StringescapePath(String $self)Properly escape certain characters, so it can be safely used inside text-files, variables and scripts. final static StringregexReplace(String $self, Regex regex, String replaceWith)Replace all matches for the given regex with replaceWith and return the resulting string. final static StringreplaceCharacter(String $self, Integer index, Character character)Replace the character at the given index with the given new character. final static StringinsertCharacter(String $self, Integer index, Character character)Insert the given character at the given index. -
-
Method Detail
-
escapePath
final static String escapePath(String $self)
Properly escape certain characters, so it can be safely used inside text-files, variables and scripts.
-
regexReplace
final static String regexReplace(String $self, Regex regex, String replaceWith)
Replace all matches for the given regex with replaceWith and return the resulting string.
-
replaceCharacter
final static String replaceCharacter(String $self, Integer index, Character character)
Replace the character at the given index with the given new character.
-
insertCharacter
final static String insertCharacter(String $self, Integer index, Character character)
Insert the given character at the given index.
-
-
-
-