diff options
Diffstat (limited to 'source/core/slang-string-util.h')
| -rw-r--r-- | source/core/slang-string-util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/core/slang-string-util.h b/source/core/slang-string-util.h index 4b9a4d5d1..7e5733cbb 100644 --- a/source/core/slang-string-util.h +++ b/source/core/slang-string-util.h @@ -87,6 +87,9 @@ struct StringUtil static String calcCharReplaced(const UnownedStringSlice& slice, char fromChar, char toChar); static String calcCharReplaced(const String& string, char fromChar, char toChar); + /// Replaces all occurrances of subStr with replacement. + static String replaceAll(UnownedStringSlice text, UnownedStringSlice subStr, UnownedStringSlice replacement); + /// Create a blob from a string static ComPtr<ISlangBlob> createStringBlob(const String& string); |
