diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-24 23:37:55 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-24 23:37:55 +1000 |
commit | 8547c56ba4607e1c4efac483f97f01b8ba8c3a01 (patch) | |
tree | d156522eae042e07a1c430220e7d5ab1bfa2727f /source/core/StarStringView.hpp | |
parent | 4c636e911ce86bcd6d501fc2f6f3ce2c3dd9c71c (diff) |
Proper LuaString <-> String handling
Null-terminator usage is opt-in
Diffstat (limited to 'source/core/StarStringView.hpp')
-rw-r--r-- | source/core/StarStringView.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/core/StarStringView.hpp b/source/core/StarStringView.hpp index 3ebc952..5598d0f 100644 --- a/source/core/StarStringView.hpp +++ b/source/core/StarStringView.hpp @@ -96,6 +96,8 @@ public: StringView& operator=(StringView s); friend bool operator==(StringView s1, const char* s2); + friend bool operator==(StringView s1, std::string const& s2); + friend bool operator==(StringView s1, String const& s2); friend bool operator==(StringView s1, StringView s2); friend bool operator!=(StringView s1, StringView s2); friend bool operator<(StringView s1, StringView s2); |