diff options
Diffstat (limited to 'src/misc/str.hpp')
-rw-r--r-- | src/misc/str.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/misc/str.hpp b/src/misc/str.hpp index c0388852b..44595e9a6 100644 --- a/src/misc/str.hpp +++ b/src/misc/str.hpp @@ -56,6 +56,15 @@ struct CStrA : public CBlobT<char> } } + /** Append another CStrA. */ + FORCEINLINE void Append(const CStrA &src) + { + if (src.Length() > 0) { + base::AppendRaw(src); + base::FixTail(); + } + } + /** Assignment from C string. */ FORCEINLINE CStrA &operator = (const char *src) { |