• Home
  • Raw
  • Download

Lines Matching refs:StringView

29 class StringView {
31 explicit StringView() noexcept = default;
32 explicit StringView(const ArenaString *str) noexcept : sv_(*str) {} in StringView() function
34 StringView(std::string_view sv) noexcept : sv_(sv) {} in StringView() function
36 StringView(const char *str) noexcept : sv_(str == nullptr ? "" : str) {} in StringView() function
37 DEFAULT_COPY_SEMANTIC(StringView);
38 DEFAULT_MOVE_SEMANTIC(StringView);
39 ~StringView() = default;
41 bool operator==(const StringView &rhs) const noexcept
46 bool operator!=(const StringView &rhs) const noexcept
51 bool operator<(const StringView &rhs) const noexcept
56 bool operator>(const StringView &rhs) const noexcept
61 int Compare(const StringView &other) const noexcept in Compare()
106 StringView Substr(size_t begin, size_t end) const noexcept in Substr()
109 return StringView(std::string_view(sv_.data() + begin, end - begin)); in Substr()
140 explicit Iterator(const StringView &sv) noexcept : sv_(sv.sv_), iter_(sv_.begin()) {} in Iterator()
263 …explicit UString(const util::StringView &str, ArenaAllocator *allocator) : UString(str.Utf8(), all… in UString()
269 util::StringView View() const in View()
272 return util::StringView(); in View()
275 return util::StringView(str_); in View()
278 util::StringView View() in View()
281 return util::StringView(); in View()
284 return util::StringView(str_); in View()
293 StringView::Utf8Encode<ArenaString>(str_, ch); in Append()
296 void Append(const StringView &other) noexcept in Append()
335 char32_t StringView::Iterator::DecodeCP([[maybe_unused]] size_t *cpSize) const in DecodeCP()
383 std::string StringView::EscapeSymbol() const in EscapeSymbol()
441 void StringView::Utf8Encode(T *str, char32_t cu) in Utf8Encode()
467 void StringView::Mutf8Encode(T *str, char32_t cu) in Mutf8Encode()
495 struct hash<ark::es2panda::util::StringView> {
496 std::size_t operator()(const ark::es2panda::util::StringView &str) const
502 ostream &operator<<(ostream &os, const ark::es2panda::util::StringView &us);