Module voca_rs::manipulate

source ·
Expand description

Manipulate with the subject.

Functions

Returns a copy of subject expands spaces using the tab characters.
Returns a copy of subject expands the tab characters using spaces.
Adds the suffix to the end of the string unless it already exists in the subject.
Inserts into subject a string to_insert at specified position.
Latinises the subject by removing diacritic characters.
Pads subject to a new length.
Pads subject from left to a new length.
Pads subject from right to a new length.
Repeats the subject number of times.
Replaces the matches of pattern with replacement.
Replaces all matches of pattern with replacement.
Reverses the subject.
Reverses the subject taking care of surrogate pairs and combining marks.
Slugifies the subject. Cleans the subject by replacing diacritics with corresponding latin characters.
Changes subject by deleting delete_count of characters starting at position start. Places a new string to_add instead of deleted characters.
Adds the prefix to the start of the string unless it already exists in the subject.
Translates characters or replaces substrings in subject.
Removes whitespaces from left and right sides of the subject.
Removes whitespaces from the left side of the subject.
Removes whitespaces from the right side of the subject.
Wraps subject to a given number of characters using a string break character.
Pads subject from left with zeros to a new length.