diff options
Diffstat (limited to 'source/core/slang-string.h')
| -rw-r--r-- | source/core/slang-string.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/core/slang-string.h b/source/core/slang-string.h index e57718d40..3fb184ac7 100644 --- a/source/core/slang-string.h +++ b/source/core/slang-string.h @@ -100,6 +100,10 @@ namespace Slang { return slice.m_begin >= m_begin && slice.m_end <= m_end; } + bool isMemoryContained(const char* pos) const + { + return pos >= m_begin && pos <= m_end; + } Index getLength() const { @@ -439,6 +443,9 @@ namespace Slang /// Append a character (to remove ambiguity with other integral types) void appendChar(char chr); + /// Append the specified char count times + void appendRepeatedChar(char chr, Index count); + String(const char* str) { append(str); |
