diff options
Diffstat (limited to 'source/core/StarString.hpp')
-rw-r--r-- | source/core/StarString.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/core/StarString.hpp b/source/core/StarString.hpp index 0f30fd2..ddc7926 100644 --- a/source/core/StarString.hpp +++ b/source/core/StarString.hpp @@ -12,6 +12,7 @@ namespace Star { STAR_CLASS(StringList); STAR_CLASS(String); +STAR_CLASS(StringView); STAR_EXCEPTION(StringException, StarException); @@ -268,6 +269,13 @@ public: friend std::ostream& operator<<(std::ostream& os, String const& s); friend std::istream& operator>>(std::istream& is, String& s); + // String view functions + String(StringView s); + String(std::string_view s); + + String& operator+=(StringView s); + String& operator+=(std::string_view s); + private: int compare(size_t selfOffset, size_t selfLen, |