Manipulate extension

Bundles destructive string manipulation functionalities

on

Methods

insert(String toInsert, int position) String

Available on String, provided by the Manipulate extension

Inserts the toInsert string to a string at index position
latinize() String

Available on String, provided by the Manipulate extension

Returns a latinised string
reverse() String

Available on String, provided by the Manipulate extension

Reverses a string. Works with strings containing graphemes
slugify() String

Available on String, provided by the Manipulate extension

Slugifies the string and replaces diacritics with corresponding latin characters
splice(int deleteCount, int startPosition, String replacement) String

Available on String, provided by the Manipulate extension

Changes a string by deleting deleteCount of chacters from the startPosition. Replaces replacement charactes instead of deleted characters
translate(Map<String, String> translations) String

Available on String, provided by the Manipulate extension

Translate a string by replacing a given substring with another substring