( string_replace )
凡例
| → | 対応コードあり |
| → | 直接対応していないが代替の書き方あり |
| → | 対応コードなし |
| - | 未確認 |
| ( .. ) | ローカライズまだ |
| 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 ) | → | - | - | - | - |