( string_convert )
Legend
| → | Has corresponding code |
| → | No direct match, but an alternative exists |
| → | No corresponding code |
| - | TODO |
| ( .. ) | Not localized |
| Example | Python pytest |
C++ GoogleTest |
Swift Testing |
Kotlin jUnit |
Bash bats |
|---|---|---|---|---|---|
| ( trim ) | strip | - | - | → | - |
| ( trim_first ) | lstrip | - | - | → | - |
| ( trim_last ) | rstrip | - | - | → | - |
| ( trim_indent ) | textwrap.dedent | - | - | trimIndent | - |
| ( encode_uri_for_query ) | urllib.parse.quote_plus | - | - | → | - |
| ( encode_uri_for_path ) | urllib.parse.quote | - | - | → | - |
| ( decode_uri_for_query ) | urllib.parse.unquote_plus | - | - | → | - |
| ( decode_uri_for_path ) | urllib.parse.unquote | - | - | → | - |
| ( escape_html ) | html.escape | - | - | → | - |
| ( unescape_html ) | html.unescape | - | - | → | - |
| ( string_to_hex ) | encode + hex | - | - | → | - |
| ( hex_to_string ) | fromhex + decode | - | - | → | - |
| ( convert_charset ) | encode | - | - | → | - |
| ( normalize_nfc ) | unicodedata.normalize | - | - | → | - |
| ( charcode_to_char ) | chr | - | - | → | - |
| ( char_to_charcode ) | ord | - | - | → | - |
| ( expand_tabs ) | s.expandtabs | - | - | → | - |
| ( tabify ) | → | - | - | → | - |
| ( capitalize ) | capitalize | - | - | → | - |
| ( titlize ) | titlize | - | - | → | - |
| ( to_upper ) | upper | - | - | → | - |
| ( to_lower ) | lower | - | - | → | - |
| ( reverse ) | → | - | - | → | - |
| ( zen_to_han_alnum_only ) | unicodedata.normalize('NFKC', s) | - | - | → | - |
| ( han_to_zen_alnum_only ) | → | - | - | → | - |