diff options
Diffstat (limited to 'source/core')
| -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 02a43a806..25bf99023 100644 --- a/source/core/slang-string.h +++ b/source/core/slang-string.h @@ -161,6 +161,11 @@ namespace Slang return !(*this == other); } + bool operator!=(char const* str) const + { + return (*this) != UnownedStringSlice(str, str + ::strlen(str)); + } + bool startsWith(UnownedStringSlice const& other) const; bool startsWith(char const* str) const; |
