diff options
Diffstat (limited to 'common/str.cpp')
-rw-r--r-- | common/str.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/str.cpp b/common/str.cpp index 9e94d240d7..ad48ef6087 100644 --- a/common/str.cpp +++ b/common/str.cpp @@ -254,6 +254,13 @@ void String::clear() { _storage[0] = 0; } +void String::setChar(char c, uint32 p) { + assert(p <= _len); + + ensureCapacity(_len, true); + _str[p] = c; +} + void String::insertChar(char c, uint32 p) { assert(p <= _len); |