Lines Matching refs:StringView
67 class StringView {
69 constexpr StringView() : mString(""), mSize(0U) {} in StringView() function
71 constexpr StringView(const StringView& other) : in StringView() function
85 constexpr StringView(const char (&buf)[size]) : in StringView() function
92 constexpr StringView(char (&buf)[size]) : in StringView() function
107 constexpr StringView(const Char* const & string) : in StringView() function
110 StringView(const std::string& str) : in StringView() function
113 constexpr StringView(const char* str, size_t len) in StringView() function
116 constexpr StringView(const char* begin, const char* end) in StringView() function
119 constexpr StringView(std::nullptr_t) : in StringView() function
154 void set(const StringView& other) { in set()
160 int compare(const StringView& other) const;
162 StringView& operator=(const StringView& other) {
169 size_t find(StringView other, size_t off = 0) {
187 StringView getSubstr(StringView other, size_t off = 0) {
189 if (loc == std::string::npos) return StringView("");
195 StringView substr(size_t begin, size_t len = std::string::npos) {
206 StringView substrAbs(size_t begin, size_t end = std::string::npos) {
224 bool operator==(const StringView& x, const StringView& y);
226 inline bool operator!=(const StringView& x, const StringView& y) {
230 inline bool operator<(const StringView& x, const StringView& y) {
234 inline bool operator>=(const StringView& x, const StringView& y) {
238 inline bool operator >(const StringView& x, const StringView& y) {
242 inline bool operator<=(const StringView& x, const StringView& y) {
265 CStrWrapper(StringView stringView) : mStringView(stringView) {} in CStrWrapper()
286 const StringView mStringView;
290 inline CStrWrapper c_str(StringView stringView) { in c_str()