( string_replace )
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 |
|---|---|---|---|---|---|
| ( replace_all ) | s.replace | - | - | - | - |
| ( replace_first_occurrence ) | s.replace(org, new, 1) | - | - | - | - |
| ( replace_all_with_regexp ) | re.sub(p, new, org) | - | - | - | - |
| ( replace_first_with_regexp ) | re.sub + count | - | - | - | - |
| ( replace_with_range ) | → | - | - | - | - |