diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-04-28 11:52:04 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-04-28 11:53:18 +0200 |
commit | 3b03f87070d91f63f0dc3c7152723727781dcccf (patch) | |
tree | 7b06163f34248d1e632c032cfaf306787675e585 /include/StringView.hpp | |
parent | b0bfb8b8d1479502bd5adf17e6a1b94ec00c63ca (diff) |
Add commands, users side panel, improve image download
start using odhtdb
Diffstat (limited to 'include/StringView.hpp')
-rw-r--r-- | include/StringView.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/StringView.hpp b/include/StringView.hpp index 9eea387..45d0f5b 100644 --- a/include/StringView.hpp +++ b/include/StringView.hpp @@ -52,6 +52,16 @@ namespace dchat return memcmp(data, other.data, size * sizeof(CharType)) == 0; } + bool operator == (const BasicStringView<CharType> &other) const + { + return equals(other); + } + + bool operator != (const BasicStringView<CharType> &other) const + { + return !equals(other); + } + CharType operator [] (usize index) const { assert(index < size); |