( string_info )
Legend
| → | Has corresponding code |
| → | No direct match, but an alternative exists |
| → | No corresponding code |
| - | TODO |
| ( .. ) | Not localized |
| Example | Python pytest |
PHP PHPUnit |
Swift Testing |
Csharp xunit |
Bash bats |
Powershell pester |
C++ GoogleTest |
JavaScript Jest |
Kotlin jUnit |
|---|---|---|---|---|---|---|---|---|---|
| ( string_character_size ) | len(s) | - | - | - | "${#s}" | - | - | - | - |
| ( string_byte_size ) | → | - | - | - | LC_ALL=en_US.UTF-8 printf '%s' "$1" | wc -c | - | - | - | - |
| ( string_count_occurrence ) | text.count(s) | - | - | - | grep -oF ".." | wc -l | - | - | - | - |