diff options
Diffstat (limited to 'tests/libsample/str.cpp')
-rw-r--r-- | tests/libsample/str.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/libsample/str.cpp b/tests/libsample/str.cpp index 20c2084a9..db8bf2ec7 100644 --- a/tests/libsample/str.cpp +++ b/tests/libsample/str.cpp @@ -166,3 +166,14 @@ unsigned int strHash(const Str& str) return result; } +void changePStr(PStr* pstr, const char* suffix) +{ + pstr->append(suffix); +} + +void duplicatePStr(PStr* pstr) +{ + if (!pstr) + return; + pstr->append(*pstr); +} |