diff options
Diffstat (limited to 'source/core/slang-string.h')
| -rw-r--r-- | source/core/slang-string.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/core/slang-string.h b/source/core/slang-string.h index 69ca7e2c3..028eec3e4 100644 --- a/source/core/slang-string.h +++ b/source/core/slang-string.h @@ -765,6 +765,11 @@ namespace Slang return indexOf(str.begin(), 0); } + void swapWith(String& other) + { + m_buffer.swapWith(other.m_buffer); + } + Index indexOf(char ch, Index id) const { const Index length = getLength(); |
