Home
last modified time | relevance | path

Searched refs:string_view (Results 1 – 25 of 1012) sorted by relevance

12345678910>>...41

/third_party/abseil-cpp/absl/strings/
Dstring_view_test.cc83 absl::string_view s10; in TEST()
91 absl::string_view s20(hello); in TEST()
96 absl::string_view s21(hello, 4); in TEST()
101 absl::string_view s22(hello, 6); in TEST()
109 absl::string_view s30(hola); in TEST()
117 absl::string_view s31(hola); in TEST()
128 absl::string_view s1(str1); in TEST()
131 absl::string_view s2(str2); in TEST()
142 absl::string_view a("a"); in TEST()
143 absl::string_view b("bbb"); in TEST()
[all …]
Dstr_split.cc41 absl::string_view GenericFind(absl::string_view text, in GenericFind()
42 absl::string_view delimiter, size_t pos, in GenericFind()
47 return absl::string_view(text.data() + pos + 1, 0); in GenericFind()
49 size_t found_pos = absl::string_view::npos; in GenericFind()
50 absl::string_view found(text.data() + text.size(), in GenericFind()
53 if (found_pos != absl::string_view::npos) { in GenericFind()
54 found = absl::string_view(text.data() + found_pos, in GenericFind()
63 size_t Find(absl::string_view text, absl::string_view delimiter, size_t pos) { in Find()
66 size_t Length(absl::string_view delimiter) { return delimiter.length(); } in Length()
72 size_t Find(absl::string_view text, absl::string_view delimiter, size_t pos) { in Find()
[all …]
Dstring_view.h51 using string_view = std::string_view; variable
159 class string_view {
177 constexpr string_view() noexcept : ptr_(nullptr), length_(0) {} in string_view() function
182 string_view( // NOLINT(runtime/explicit) in string_view() function
187 : string_view(str.data(), str.size()) {} in string_view()
192 constexpr string_view(const char* str) // NOLINT(runtime/explicit) in string_view() function
197 constexpr string_view(const char* data, size_type len) in string_view() function
354 void swap(string_view& s) noexcept { in swap()
391 constexpr string_view substr(size_type pos, size_type n = npos) const {
395 string_view())
[all …]
Dstring_view.cc46 explicit LookupTable(string_view wanted) { in LookupTable()
60 std::ostream& operator<<(std::ostream& o, string_view piece) { in operator <<()
81 string_view::size_type string_view::find(string_view s, size_type pos) const in find()
92 string_view::size_type string_view::find(char c, size_type pos) const noexcept { in find()
101 string_view::size_type string_view::rfind(string_view s, size_type pos) const in rfind()
111 string_view::size_type string_view::rfind(char c, size_type pos) const in rfind()
124 string_view::size_type string_view::find_first_of(string_view s, in find_first_of()
141 string_view::size_type string_view::find_first_not_of(string_view s, in find_first_not_of()
156 string_view::size_type string_view::find_first_not_of(char c, in find_first_not_of()
168 string_view::size_type string_view::find_last_of(string_view s, in find_last_of()
[all …]
Descaping.h72 bool CUnescape(absl::string_view source, std::string* dest, std::string* error);
75 inline bool CUnescape(absl::string_view source, std::string* dest) { in CUnescape()
90 std::string CEscape(absl::string_view src);
103 std::string CHexEscape(absl::string_view src);
111 std::string Utf8SafeCEscape(absl::string_view src);
118 std::string Utf8SafeCHexEscape(absl::string_view src);
125 bool Base64Unescape(absl::string_view src, std::string* dest);
132 bool WebSafeBase64Unescape(absl::string_view src, std::string* dest);
138 void Base64Escape(absl::string_view src, std::string* dest);
139 std::string Base64Escape(absl::string_view src);
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
Dstring_view_test.cc83 absl::string_view s10; in TEST()
91 absl::string_view s20(hello); in TEST()
96 absl::string_view s21(hello, 4); in TEST()
101 absl::string_view s22(hello, 6); in TEST()
109 absl::string_view s30(hola); in TEST()
117 absl::string_view s31(hola); in TEST()
128 absl::string_view s1(str1); in TEST()
131 absl::string_view s2(str2); in TEST()
142 absl::string_view a("a"); in TEST()
143 absl::string_view b("bbb"); in TEST()
[all …]
Dstr_split.cc41 absl::string_view GenericFind(absl::string_view text, in GenericFind()
42 absl::string_view delimiter, size_t pos, in GenericFind()
47 return absl::string_view(text.data() + pos + 1, 0); in GenericFind()
49 size_t found_pos = absl::string_view::npos; in GenericFind()
50 absl::string_view found(text.data() + text.size(), in GenericFind()
53 if (found_pos != absl::string_view::npos) { in GenericFind()
54 found = absl::string_view(text.data() + found_pos, in GenericFind()
63 size_t Find(absl::string_view text, absl::string_view delimiter, size_t pos) { in Find()
66 size_t Length(absl::string_view delimiter) { return delimiter.length(); } in Length()
72 size_t Find(absl::string_view text, absl::string_view delimiter, size_t pos) { in Find()
[all …]
Dstring_view.h52 using string_view = std::string_view; variable
166 class string_view {
184 constexpr string_view() noexcept : ptr_(nullptr), length_(0) {} in string_view() function
189 string_view( // NOLINT(runtime/explicit) in string_view() function
196 : string_view(str.data(), str.size(), SkipCheckLengthTag{}) {} in string_view()
202 constexpr string_view(const char* str) // NOLINT(runtime/explicit) in string_view() function
206 constexpr string_view(const char* data, size_type len) in string_view() function
361 ABSL_INTERNAL_STRING_VIEW_CXX14_CONSTEXPR void swap(string_view& s) noexcept { in swap()
398 constexpr string_view substr(size_type pos = 0, size_type n = npos) const {
402 string_view())
[all …]
Dstring_view.cc46 explicit LookupTable(string_view wanted) { in LookupTable()
60 std::ostream& operator<<(std::ostream& o, string_view piece) { in operator <<()
81 string_view::size_type string_view::find(string_view s, in find()
92 string_view::size_type string_view::find(char c, size_type pos) const noexcept { in find()
101 string_view::size_type string_view::rfind(string_view s, in rfind()
111 string_view::size_type string_view::rfind(char c, in rfind()
124 string_view::size_type string_view::find_first_of( in find_first_of()
125 string_view s, size_type pos) const noexcept { in find_first_of()
140 string_view::size_type string_view::find_first_not_of( in find_first_not_of()
141 string_view s, size_type pos) const noexcept { in find_first_not_of()
[all …]
Descaping.h72 bool CUnescape(absl::string_view source, std::string* dest, std::string* error);
75 inline bool CUnescape(absl::string_view source, std::string* dest) { in CUnescape()
90 std::string CEscape(absl::string_view src);
103 std::string CHexEscape(absl::string_view src);
111 std::string Utf8SafeCEscape(absl::string_view src);
118 std::string Utf8SafeCHexEscape(absl::string_view src);
125 bool Base64Unescape(absl::string_view src, std::string* dest);
132 bool WebSafeBase64Unescape(absl::string_view src, std::string* dest);
138 void Base64Escape(absl::string_view src, std::string* dest);
139 std::string Base64Escape(absl::string_view src);
[all …]
/third_party/boost/boost/beast/http/
Dfields.hpp89 string_view sname, string_view value);
103 string_view const
107 string_view const
124 string_view lhs, in operator ()()
138 string_view rhs) const noexcept in operator ()()
179 string_view sname, string_view value);
308 string_view const
322 string_view const
323 at(string_view name) const;
332 string_view const
[all …]
Drfc7230.hpp55 string_view s_;
65 std::pair<string_view, string_view>;
83 param_list(string_view s) in param_list()
143 using iter_type = string_view::const_iterator;
145 string_view s_;
154 using value_type = std::pair<string_view, param_list>;
169 ext_list(string_view s) in ext_list()
195 find(string_view const& s);
203 exists(string_view const& s);
236 using iter_type = string_view::const_iterator;
[all …]
/third_party/boost/libs/beast/include/boost/beast/http/
Dfields.hpp89 string_view sname, string_view value);
103 string_view const
107 string_view const
124 string_view lhs, in operator ()()
138 string_view rhs) const noexcept in operator ()()
179 string_view sname, string_view value);
308 string_view const
322 string_view const
323 at(string_view name) const;
332 string_view const
[all …]
Drfc7230.hpp55 string_view s_;
65 std::pair<string_view, string_view>;
83 param_list(string_view s) in param_list()
143 using iter_type = string_view::const_iterator;
145 string_view s_;
154 using value_type = std::pair<string_view, param_list>;
169 ext_list(string_view s) in ext_list()
195 find(string_view const& s);
203 exists(string_view const& s);
236 using iter_type = string_view::const_iterator;
[all …]
/third_party/skia/tests/
DSkStringViewTest.cpp13 skstd::string_view empty; in DEF_TEST()
18 skstd::string_view helloWorld(str); in DEF_TEST()
22 skstd::string_view hello(str, 5); in DEF_TEST()
26 skstd::string_view copy(hello); in DEF_TEST()
36 skstd::string_view empty(""); in DEF_TEST()
45 skstd::string_view xyz("xyz"); in DEF_TEST()
75 skstd::string_view str("abc"); in DEF_TEST()
76 skstd::string_view::iterator iter = str.begin(); in DEF_TEST()
86 skstd::string_view empty; in DEF_TEST()
91 skstd::string_view empty; in DEF_TEST()
[all …]
/third_party/skia/include/core/
DSkStringView.h17 class string_view {
28 constexpr string_view() in string_view() function
32 constexpr string_view(const string_view&) = default;
34 constexpr string_view(const_pointer data, size_type length) in string_view() function
38 string_view(const_pointer data) in string_view() function
39 : string_view(data, strlen(data)) {} in string_view()
41 string_view(const std::string& str) in string_view() function
42 : string_view(str.data(), str.length()) {} in string_view()
44 constexpr string_view& operator=(const string_view&) = default;
82 constexpr bool starts_with(string_view s) const { in starts_with()
[all …]
/third_party/gn/src/base/
Dvalues.h122 explicit Value(std::string_view in_string);
172 Value* FindKey(std::string_view key);
173 const Value* FindKey(std::string_view key) const;
184 Value* FindKeyOfType(std::string_view key, Type type);
185 const Value* FindKeyOfType(std::string_view key, Type type) const;
194 Value* SetKey(std::string_view key, Value value);
208 bool RemoveKey(std::string_view key);
228 Value* FindPath(std::initializer_list<std::string_view> path);
229 Value* FindPath(span<const std::string_view> path);
230 const Value* FindPath(std::initializer_list<std::string_view> path) const;
[all …]
/third_party/skia/src/core/
DSkStringView.cpp13 bool operator==(string_view left, string_view right) { in operator ==()
17 return !string_view::traits_type::compare(left.data(), right.data(), left.length()); in operator ==()
20 bool operator!=(string_view left, string_view right) { in operator !=()
24 bool operator<(string_view left, string_view right) { in operator <()
25 int result = string_view::traits_type::compare(left.data(), right.data(), in operator <()
33 bool operator<=(string_view left, string_view right) { in operator <=()
37 bool operator>(string_view left, string_view right) { in operator >()
41 bool operator>=(string_view left, string_view right) { in operator >=()
/third_party/boost/libs/container/test/
Dstring_view_compat_test.cpp21 boost::string_view sv(s); in conversion_test()
23 boost::string_view sv2; in conversion_test()
26 const boost::string_view csv(s); in conversion_test()
35 boost::string_view sv(s.to_view<boost::string_view>()); in to_view_test()
37 boost::string_view sv2; in to_view_test()
38 sv2 = s.to_view<boost::string_view>(); in to_view_test()
40 const boost::string_view csv(s.to_view<boost::string_view>()); in to_view_test()
46 const boost::string_view sv = "same text"; in equal_test()
47 const boost::string_view svd = "different text"; in equal_test()
57 const boost::string_view sv = "same text"; in unequal_test()
[all …]
/third_party/boost/tools/quickbook/src/
Ddocument_state_impl.hpp51 quickbook::string_view id,
76 quickbook::string_view,
80 id_placeholder const* get_placeholder(quickbook::string_view) const;
90 quickbook::string_view include_doc_id,
91 quickbook::string_view id,
97 quickbook::string_view id, id_category category);
99 quickbook::string_view id, id_category category);
102 quickbook::string_view id,
109 quickbook::string_view id,
114 quickbook::string_view id,
[all …]
Dstring_view.hpp21 struct string_view : boost::string_view struct
23 typedef boost::string_view base;
25 string_view() : base() {} in string_view() function
26 string_view(string_view const& x) : base(x) {} in string_view() function
27 string_view(std::string const& x) : base(x) {} in string_view() function
28 string_view(const char* x) : base(x) {} in string_view() function
29 string_view(const char* x, base::size_type len) : base(x, len) {} in string_view() function
34 typedef quickbook::string_view::const_iterator string_iterator; argument
36 inline std::size_t hash_value(string_view const& x) in hash_value()
41 inline std::string& operator+=(std::string& x, string_view const& y) in operator +=()
/third_party/grpc/src/core/lib/gprpp/
Dhost_port.cc30 std::string JoinHostPort(absl::string_view host, int port) { in JoinHostPort()
40 bool DoSplitHostPort(absl::string_view name, absl::string_view* host, in DoSplitHostPort()
41 absl::string_view* port, bool* has_port) { in DoSplitHostPort()
46 if (rbracket == absl::string_view::npos) { in DoSplitHostPort()
52 *port = absl::string_view(); in DoSplitHostPort()
62 if (host->find(':') == absl::string_view::npos) { in DoSplitHostPort()
65 *host = absl::string_view(); in DoSplitHostPort()
70 if (colon != absl::string_view::npos && in DoSplitHostPort()
71 name.find(':', colon + 1) == absl::string_view::npos) { in DoSplitHostPort()
79 *port = absl::string_view(); in DoSplitHostPort()
[all …]
/third_party/gn/src/base/strings/
Dstring_util.h74 std::string ToLowerASCII(std::string_view str);
78 std::string ToUpperASCII(std::string_view str);
104 int CompareCaseInsensitiveASCII(std::string_view a, std::string_view b);
110 bool EqualsCaseInsensitiveASCII(std::string_view a, std::string_view b);
130 std::string_view remove_chars,
143 std::string_view replace_chars,
164 std::string_view trim_chars,
172 std::string_view TrimString(std::string_view input,
173 std::string_view trim_chars,
197 std::string_view TrimWhitespaceASCII(std::string_view input,
[all …]
/third_party/gn/src/gn/
Dsource_dir.h34 SourceDir(std::string_view s);
51 std::string_view source_root = std::string_view(),
59 std::string_view input_value,
61 std::string_view source_root = std::string_view()) const;
67 std::string_view source_root = std::string_view()) const;
72 std::string_view input_value,
74 std::string_view source_root = std::string_view()) const;
81 std::string_view source_root = std::string_view()) const;
108 std::string_view SourceAbsoluteWithOneSlash() const { in SourceAbsoluteWithOneSlash()
111 return std::string_view(&v[1], v.size() - 1); in SourceAbsoluteWithOneSlash()
[all …]
/third_party/boost/libs/utility/test/
Dstring_view_test2.cpp21 typedef boost::string_view string_view; typedef
25 string_view sr ( arg ); in ends_with()
26 string_view sr2 ( arg ); in ends_with()
50 BOOST_TEST ( sr2.ends_with ( string_view())); in ends_with()
55 string_view sr ( arg ); in starts_with()
56 string_view sr2 ( arg ); in starts_with()
74 BOOST_TEST ( sr2.starts_with ( string_view ())); in starts_with()
79 string_view sr1 ( arg ); in reverse()
81 string_view sr2 ( string1 ); in reverse()
90 string_view::size_type ptr_diff ( const char *res, const char *base ) { in ptr_diff()
[all …]

12345678910>>...41