You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/manipulations.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ These transformation functions are simple string transformations, including `str
20
20
`title` | text <-> titled text | | decoding "untitles" the text
21
21
`uppercase` | text <-> uppercase text | `upper` | decoding is `lowercase`
22
22
23
-
Of course, these "encodings" have no interest while using them in Python as the `str` methods can be called. It can be useful while using `codext` from the terminal (see [*CLI tool*](cli.html)).
23
+
Of course, these transformations have no interest while using them in Python as the `str` methods can be called. It can be useful while using `codext` from the terminal (see [*CLI tool*](cli.html)).
24
24
25
25
Some simple examples:
26
26
@@ -43,22 +43,25 @@ These transformation functions are simple string transformations.
`replace` | text <-> text with single-char replaced | |
46
47
`reverse` | text <-> reversed text | |
47
48
`reverse-words` | text <-> reversed words | | same as `reverse` but not on the whole text, only on the words (text split by whitespace)
49
+
`strip-spaces` | text <-> all whitespaces stripped | |
50
+
`substitute` | text <-> text with token substituted | |
48
51
49
-
As in the previous section, these "encodings" have no interest while using them in Python but well while using `codext` from the terminal (see [*CLI tool*](cli.html)).
52
+
As in the previous section, these transformations have no interest while using them in Python but well while using `codext` from the terminal (see [*CLI tool*](cli.html)).
0 commit comments