Home
last modified time | relevance | path

Searched refs:Cord (Results 1 - 23 of 23) sorted by relevance

/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
H A Dcord.h19 // This file defines the `absl::Cord` data structure and operations on that data
20 // structure. A Cord is a string-like sequence of characters optimized for
22 // contiguous characters, Cord data is stored in a structure consisting of
26 // Because a Cord consists of these chunks, data can be added to or removed from
27 // a Cord during its lifetime. Chunks may also be shared between Cords. Unlike a
28 // `std::string`, a Cord can therefore accommodate data that changes over its
32 // A Cord provides some benefit over `std::string` under the following (albeit
35 // * Cord data is designed to grow and shrink over a Cord's lifetime. Cord
131 class Cord { global() class
1139 inline Cord::Cord(absl::string_view src) Cord() function in absl::Cord
1143 constexpr Cord::Cord(strings_internal::StringConstant<T>) Cord() function in absl::Cord
1166 inline Cord::Cord(const Cord& src) : contents_(src.contents_) {} Cord() function in absl::Cord
[all...]
H A Dcord_test.cc104 static void AddExternalMemory(absl::string_view s, absl::Cord* dst) { in AddExternalMemory()
112 absl::Cord str; in DumpGrowth()
119 // Make a Cord with some number of fragments. Return the size (in bytes)
122 absl::Cord* cord) { in AppendWithFragments()
148 static void AddNewStringBlock(const std::string& str, absl::Cord* dst) { in AddNewStringBlock()
156 // Make a Cord out of many different types of nodes.
157 static absl::Cord MakeComposite() { in MakeComposite()
158 absl::Cord cord; in MakeComposite()
163 absl::Cord full(" over"); in MakeComposite()
166 absl::Cord substrin in MakeComposite()
[all...]
H A Dcordz_test.cc50 inline void PrintTo(const Cord& cord, std::ostream* s) { in PrintTo()
51 if (s) *s << "Cord[" << cord.size() << "]"; in PrintTo()
59 // We do this to avoid 'consuming' large strings in Cord by default.
71 absl::Cord MakeAppendStringCord(TestCordSize size) { in MakeAppendStringCord()
73 absl::Cord cord; in MakeAppendStringCord()
79 return absl::StrCat("On", ToString(size.param), "Cord"); in TestParamToString()
84 Cord& cord() { return cord_; } in cord()
93 Cord cord_{MakeString(GetParam())};
122 Cord cord(MakeString(TestCordSize::kSmall)); in TEST()
128 Cord cor in TEST()
[all...]
H A Dcord.cc125 // If you are debugging Cord itself, you should define the in VerifyTree()
307 // Cord::InlineRep functions
309 constexpr unsigned char Cord::InlineRep::kMaxInline;
311 inline void Cord::InlineRep::set_data(const char* data, size_t n, in set_data()
319 inline char* Cord::InlineRep::set_data(size_t n) { in set_data()
326 inline void Cord::InlineRep::reduce_size(size_t n) { in reduce_size()
335 inline void Cord::InlineRep::remove_prefix(size_t n) { in remove_prefix()
347 void Cord::InlineRep::AppendTreeToInlined(CordRep* tree, in AppendTreeToInlined()
361 void Cord::InlineRep::AppendTreeToTree(CordRep* tree, MethodIdentifier method) { in AppendTreeToTree()
372 void Cord
580 Cord::Cord(absl::string_view src, MethodIdentifier method) Cord() function in absl::Cord
592 Cord::Cord(T&& src) : contents_(InlineData::kDefaultInit) { Cord() function in absl::Cord
[all...]
H A Dcord_test_helpers.h32 // Cord sizes relevant for testing
46 // such that Cord prefers copying the value if possible, i.e.: not stealing
50 // A string value large enough that Cord prefers to reference or steal from
87 // Creates a multi-segment Cord from an iterable container of strings. The
88 // resulting Cord is guaranteed to have one segment for every string in the
89 // container. This allows code to be unit tested with multi-segment Cord
94 // absl::Cord c = absl::MakeFragmentedCord({"A ", "fragmented ", "Cord"});
97 // The mechanism by which this Cord is created is an implementation detail. Any
98 // implementation that produces a multi-segment Cord ma
[all...]
H A Dcordz_test_helpers.h37 const Cord& cord) { in GetCordzInfoForTesting()
51 // Matcher on Cord that verifies all of:
80 // Matcher on Cord that verifies that the cord is sampled and that the CordzInfo
139 // Creates a Cord that is not sampled
141 Cord UnsampledCord(Args... args) { in UnsampledCord()
143 Cord cord(std::forward<Args>(args)...); in UnsampledCord()
H A Dstr_format_test.cc365 // Formats std::string, char*, string_view, and Cord. in TEST()
369 EXPECT_EQ(StrFormat("%s", absl::Cord("cord")), "cord"); in TEST()
/third_party/skia/third_party/externals/abseil-cpp/absl/status/
H A Dstatus_test.cc149 using PayloadsVec = std::vector<std::pair<std::string, absl::Cord>>;
153 ok_status.SetPayload(kUrl1, absl::Cord(kPayload1)); in TEST()
154 ok_status.SetPayload(kUrl2, absl::Cord(kPayload2)); in TEST()
160 bad_status.SetPayload(kUrl1, absl::Cord(kPayload1)); in TEST()
161 bad_status.SetPayload(kUrl2, absl::Cord(kPayload2)); in TEST()
168 bad_status.SetPayload(kUrl1, absl::Cord(kPayload3)); in TEST()
172 bad_status.SetPayload(absl::StrCat(kUrl1, ".1"), absl::Cord(kPayload1)); in TEST()
179 bad_status.SetPayload(kUrl1, absl::Cord(kPayload1)); in TEST()
180 bad_status.SetPayload(kUrl2, absl::Cord(kPayload2)); in TEST()
181 bad_status.SetPayload(kUrl3, absl::Cord(kPayload in TEST()
[all...]
H A Dstatus.cc116 absl::optional<absl::Cord> Status::GetPayload( in GetPayload()
125 void Status::SetPayload(absl::string_view type_url, absl::Cord payload) { in SetPayload()
164 const std::function<void(absl::string_view, const absl::Cord&)>& visitor) in ForEachPayload()
297 const absl::Cord& payload) { in ToStringSlow()
H A Dstatus_payload_printer.h38 const absl::Cord&);
H A Dstatus.h412 // // other payloads), and an `absl::Cord` to hold the encoded data.
544 // `absl::Cord` to hold the contextual data.
557 // passing it the type URL and an `absl::Cord` of associated data. Similarly,
566 absl::optional<absl::Cord> GetPayload(absl::string_view type_url) const;
574 void SetPayload(absl::string_view type_url, absl::Cord payload);
593 const std::function<void(absl::string_view, const absl::Cord&)>& visitor)
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
H A Dhash_function_defaults_test.cc210 hash_default_eq<absl::Cord> eq; in TEST()
212 const absl::Cord a_cord(a_string_view); in TEST()
214 const absl::Cord b_cord(b_string_view); in TEST()
225 hash_default_hash<absl::Cord> hash; in TEST()
227 const absl::Cord a_cord(a_string_view); in TEST()
229 const absl::Cord b_cord(b_string_view); in TEST()
235 EXPECT_EQ(hash(absl::Cord("")), hash("")); in TEST()
236 EXPECT_EQ(hash(absl::Cord()), hash(absl::string_view())); in TEST()
247 hash_default_hash<absl::Cord> hash; in TEST()
248 absl::Cord in TEST()
[all...]
H A Dhash_function_defaults.h76 size_t operator()(const absl::Cord& v) const { in operator ()()
77 return absl::Hash<absl::Cord>{}(v); in operator ()()
86 bool operator()(const absl::Cord& lhs, const absl::Cord& rhs) const { in operator ()()
89 bool operator()(const absl::Cord& lhs, absl::string_view rhs) const { in operator ()()
92 bool operator()(absl::string_view lhs, const absl::Cord& rhs) const { in operator ()()
108 struct HashEq<absl::Cord> : StringHashEq {};
H A Dbtree.h96 explicit operator std::less<absl::Cord>() const { return {}; } in operator std::less()
102 StringBtreeDefaultLess(std::less<absl::Cord>) {} // NOLINT in StringBtreeDefaultLess()
103 absl::weak_ordering operator()(const absl::Cord &lhs, in operator ()()
104 const absl::Cord &rhs) const { in operator ()()
107 absl::weak_ordering operator()(const absl::Cord &lhs, in operator ()()
112 const absl::Cord &rhs) const { in operator ()()
128 explicit operator std::greater<absl::Cord>() const { return {}; } in operator std::greater()
134 StringBtreeDefaultGreater(std::greater<absl::Cord>) {} // NOLINT in StringBtreeDefaultGreater()
135 absl::weak_ordering operator()(const absl::Cord &lhs, in operator ()()
136 const absl::Cord in operator ()()
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/hash/
H A Dhash_benchmark.cc87 absl::Cord FlatCord(size_t size) { in FlatCord()
88 absl::Cord result(std::string(size, 'a')); in FlatCord()
93 absl::Cord FragmentedCord(size_t size) { in FragmentedCord()
104 absl::Cord result = absl::MakeFragmentedCord(chunks); in FragmentedCord()
140 MAKE_BENCHMARK(AbslHash, Cord_Flat_0, absl::Cord());
H A Dhash_test.cc273 absl::Cord FlatCord(absl::string_view sv) { in FlatCord()
274 absl::Cord c(sv); in FlatCord()
279 absl::Cord FragmentedCord(absl::string_view sv) { in FragmentedCord()
281 return absl::Cord(sv); in FragmentedCord()
298 std::string(), absl::string_view(), absl::Cord(), // in TEST()
299 std::string(""), absl::string_view(""), absl::Cord(""), // in TEST()
300 std::string(small), absl::string_view(small), absl::Cord(small), // in TEST()
301 std::string(dup), absl::string_view(dup), absl::Cord(dup), // in TEST()
302 std::string(large), absl::string_view(large), absl::Cord(large), // in TEST()
309 t(std::string()), t(absl::string_view()), t(absl::Cord()), // in TEST()
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/container/
H A Dbtree_test.h105 struct Generator<Cord> {
108 Cord operator()(int i) const { in operator ()()
110 return Cord(GenerateDigits(buf, i, maxval)); in operator ()()
H A Dbtree_benchmark.cc430 STL_ORDERED_TYPES(Cord);
451 STL_UNORDERED_TYPES_CUSTOM_HASH(Cord, absl::Hash<absl::Cord>);
473 BTREE_TYPES(Cord);
522 MY_BENCHMARK(Cord);
H A Dbtree_test.cc818 TEST(Btree, set_cord) { SetTest<absl::Cord>(); } in TEST()
823 TEST(Btree, map_cord) { MapTest<absl::Cord>(); } in TEST()
855 TEST(Btree, multiset_cord) { MultiSetTest<absl::Cord>(); } in TEST()
860 TEST(Btree, multimap_cord) { MultiMapTest<absl::Cord>(); } in TEST()
1375 AssertKeyCompareToAdapted<std::less<absl::Cord>, absl::Cord>(); in TEST()
1376 AssertKeyCompareToAdapted<std::greater<absl::Cord>, absl::Cord>(); in TEST()
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/str_format/
H A Doutput_test.cc41 TEST(InvokeFlush, Cord) { in TEST()
42 absl::Cord str("ABC"); in TEST()
H A Darg.h38 class Cord;
139 AbslCord, absl::Cord>::value>::type* = nullptr>
/third_party/skia/third_party/externals/abseil-cpp/absl/status/internal/
H A Dstatus_internal.h43 absl::Cord payload;
/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/
H A DDescriptor.cs7041 [pbr::OriginalName("CORD")] Cord = 1, enumerator

Completed in 37 milliseconds