Lines Matching full:stringview
29 class StringView {
31 explicit StringView() noexcept = default;
32 explicit StringView(const ArenaString *str) noexcept : sv_(*str) {} in StringView() function
35 StringView(std::string_view sv) noexcept : sv_(sv) {} in StringView() function
38 StringView(const char *str) noexcept : sv_(str == nullptr ? "" : str) {} in StringView() function
39 DEFAULT_COPY_SEMANTIC(StringView);
40 DEFAULT_MOVE_SEMANTIC(StringView);
41 ~StringView() = default;
43 bool operator==(const StringView &rhs) const noexcept
48 bool operator!=(const StringView &rhs) const noexcept
53 bool operator<(const StringView &rhs) const noexcept
58 bool operator>(const StringView &rhs) const noexcept
63 bool operator<=(const StringView &rhs) const noexcept
68 bool operator>=(const StringView &rhs) const noexcept
73 int Compare(const StringView &other) const noexcept in Compare()
131 StringView Substr(size_t begin, size_t end) const noexcept in Substr()
134 return StringView(std::string_view(sv_.data() + begin, end - begin)); in Substr()
163 explicit Iterator(const StringView &sv) noexcept : sv_(sv.sv_), iter_(sv_.begin()) {} in Iterator()
291 …explicit UString(const util::StringView &str, ArenaAllocator *allocator) : UString(str.Utf8(), all… in UString()
297 util::StringView View() const in View()
300 return util::StringView(); in View()
303 return util::StringView(str_); in View()
306 util::StringView View() in View()
309 return util::StringView(); in View()
312 return util::StringView(str_); in View()
321 StringView::Utf8Encode<ArenaString>(str_, ch); in Append()
325 util::UString &Append(StringView other) noexcept in Append()
337 return Append(StringView(other)); in Append()
375 char32_t StringView::Iterator::DecodeCP([[maybe_unused]] size_t *cpSize) const in DecodeCP()
426 std::string StringView::EscapeSymbol() const in EscapeSymbol()
484 void StringView::Utf8Encode(T *str, char32_t cu) in Utf8Encode()
511 void StringView::Mutf8Encode(T *str, char32_t cu) in Mutf8Encode()
539 struct hash<ark::es2panda::util::StringView> {
540 std::size_t operator()(const ark::es2panda::util::StringView &str) const
546 ostream &operator<<(ostream &os, const ark::es2panda::util::StringView &us);