Lines Matching refs:mString
72 constexpr StringView() : mString(""), mSize(0U) {} in StringView()
75 mString(other.data()), mSize(other.size()) {} in StringView()
89 mString(buf), mSize(size - 1) {} in StringView()
96 mString(buf), mSize(strlen(buf)) {} in StringView()
111 mString(string ? string : ""), mSize(string ? strlen(string) : 0) {} in StringView()
114 mString(str.c_str()), mSize(str.size()) {} in StringView()
117 : mString(str ? str : ""), mSize(len) {} in StringView()
120 : mString(begin ? begin : ""), mSize(begin ? end - begin : 0) {} in StringView()
123 mString(""), mSize(0) {} in StringView()
125 std::string str() const { return std::string(mString, mString + mSize); } in str()
126 constexpr const char* data() const { return mString; } in data()
132 constexpr const_iterator begin() const { return mString; } in begin()
133 constexpr const_iterator end() const { return mString + mSize; } in end()
140 mString = ""; in clear()
144 return mString[index];
148 mString = data ? data : ""; in set()
153 mString = str ? str : ""; in set()
154 mSize = ::strlen(mString); in set()
158 mString = other.mString; in set()
178 const char* searchStart = mString + safeOff;
183 other.mString, other.mString + other.mSize);
185 return (size_t)((uintptr_t)res - (uintptr_t)mString);
193 return { mString + loc, end() };
204 return { mString + safeOff, safeLen };
217 operator std::string() const { return std::string(mString, mSize); } in string()
220 const char* mString;