• Home
  • Raw
  • Download

Lines Matching refs:Cord

87 class Cord;  variable
90 Cord MakeCordFromExternal(absl::string_view, Releaser&&);
91 void CopyCordToString(const Cord& src, std::string* dst);
121 class Cord {
131 constexpr Cord() noexcept;
135 Cord(const Cord& src);
136 Cord(Cord&& src) noexcept;
137 Cord& operator=(const Cord& x);
138 Cord& operator=(Cord&& x) noexcept;
143 explicit Cord(absl::string_view src);
144 Cord& operator=(absl::string_view src);
150 explicit Cord(T&& src);
152 Cord& operator=(T&& src);
157 ~Cord() { in ~Cord()
201 friend Cord MakeCordFromExternal(absl::string_view data, Releaser&& releaser);
213 void Append(const Cord& src);
214 void Append(Cord&& src);
223 void Prepend(const Cord& src);
239 Cord Subcord(size_t pos, size_t new_size) const;
244 void swap(Cord& other) noexcept;
249 friend void swap(Cord& x, Cord& y) noexcept { in swap()
281 int Compare(const Cord& rhs) const;
286 bool StartsWith(const Cord& rhs) const;
293 bool EndsWith(const Cord& rhs) const;
310 friend void CopyCordToString(const Cord& src, std::string* dst);
359 friend class Cord; variable
364 explicit ChunkIterator(const Cord* cord);
369 Cord AdvanceAndReadBytes(size_t n);
427 explicit ChunkRange(const Cord* cord) : cord_(cord) {} in ChunkRange()
433 const Cord* cord_;
498 friend Cord; variable
501 explicit CharIterator(const Cord* cord) : chunk_iterator_(cord) {} in CharIterator()
512 static Cord AdvanceAndRead(CharIterator* it, size_t n_bytes);
558 explicit CharRange(const Cord* cord) : cord_(cord) {} in CharRange()
564 const Cord* cord_;
614 friend void AbslFormatFlush(absl::Cord* cord, absl::string_view part) { in AbslFormatFlush()
619 friend H AbslHashValue(H hash_state, const absl::Cord& c) { in AbslHashValue()
629 friend bool operator==(const Cord& lhs, const Cord& rhs);
630 friend bool operator==(const Cord& lhs, absl::string_view rhs);
721 friend class Cord;
753 int CompareSlowPath(const Cord& rhs, size_t compared_size,
756 bool EqualsImpl(const Cord& rhs, size_t size_to_compare) const;
757 int CompareImpl(const Cord& rhs) const;
760 friend ResultType GenericCompare(const Cord& lhs, const RHS& rhs,
762 static absl::string_view GetFirstChunk(const Cord& c);
793 extern std::ostream& operator<<(std::ostream& out, const Cord& cord);
874 Cord MakeCordFromExternal(absl::string_view data, Releaser&& releaser) { in MakeCordFromExternal()
875 Cord cord; in MakeCordFromExternal()
881 inline Cord::InlineRep::InlineRep(const Cord::InlineRep& src) { in InlineRep()
885 inline Cord::InlineRep::InlineRep(Cord::InlineRep&& src) { in InlineRep()
890 inline Cord::InlineRep& Cord::InlineRep::operator=(const Cord::InlineRep& src) {
902 inline Cord::InlineRep& Cord::InlineRep::operator=(
903 Cord::InlineRep&& src) noexcept {
912 inline void Cord::InlineRep::Swap(Cord::InlineRep* rhs) { in Swap()
917 Cord::InlineRep tmp; in Swap()
923 inline const char* Cord::InlineRep::data() const { in data()
927 inline absl::cord_internal::CordRep* Cord::InlineRep::tree() const { in tree()
937 inline bool Cord::InlineRep::empty() const { return data_[kMaxInline] == 0; } in empty()
939 inline size_t Cord::InlineRep::size() const { in size()
945 inline void Cord::InlineRep::set_tree(absl::cord_internal::CordRep* rep) { in set_tree()
958 inline void Cord::InlineRep::replace_tree(absl::cord_internal::CordRep* rep) { in replace_tree()
968 inline absl::cord_internal::CordRep* Cord::InlineRep::clear() { in clear()
978 inline void Cord::InlineRep::CopyToArray(char* dst) const { in CopyToArray()
985 constexpr inline Cord::Cord() noexcept {} in Cord() function
987 inline Cord& Cord::operator=(const Cord& x) {
992 inline Cord::Cord(Cord&& src) noexcept : contents_(std::move(src.contents_)) {} in Cord() function
994 inline void Cord::swap(Cord& other) noexcept { in swap()
998 inline Cord& Cord::operator=(Cord&& x) noexcept {
1003 extern template Cord::Cord(std::string&& src);
1004 extern template Cord& Cord::operator=(std::string&& src);
1006 inline size_t Cord::size() const { in size()
1011 inline bool Cord::empty() const { return contents_.empty(); } in empty()
1013 inline size_t Cord::EstimatedMemoryUsage() const { in EstimatedMemoryUsage()
1014 size_t result = sizeof(Cord); in EstimatedMemoryUsage()
1021 inline absl::optional<absl::string_view> Cord::TryFlat() const { in TryFlat()
1033 inline absl::string_view Cord::Flatten() { in Flatten()
1046 inline void Cord::Append(absl::string_view src) { in Append()
1050 extern template void Cord::Append(std::string&& src);
1051 extern template void Cord::Prepend(std::string&& src);
1053 inline int Cord::Compare(const Cord& rhs) const { in Compare()
1062 inline bool Cord::StartsWith(const Cord& rhs) const { in StartsWith()
1069 inline bool Cord::StartsWith(absl::string_view rhs) const { in StartsWith()
1075 inline Cord::ChunkIterator::ChunkIterator(const Cord* cord) in ChunkIterator()
1086 inline Cord::ChunkIterator Cord::ChunkIterator::operator++(int) {
1092 inline bool Cord::ChunkIterator::operator==(const ChunkIterator& other) const {
1096 inline bool Cord::ChunkIterator::operator!=(const ChunkIterator& other) const {
1100 inline Cord::ChunkIterator::reference Cord::ChunkIterator::operator*() const {
1105 inline Cord::ChunkIterator::pointer Cord::ChunkIterator::operator->() const {
1110 inline void Cord::ChunkIterator::RemoveChunkPrefix(size_t n) { in RemoveChunkPrefix()
1116 inline void Cord::ChunkIterator::AdvanceBytes(size_t n) { in AdvanceBytes()
1124 inline Cord::ChunkIterator Cord::chunk_begin() const { in chunk_begin()
1128 inline Cord::ChunkIterator Cord::chunk_end() const { return ChunkIterator(); } in chunk_end()
1130 inline Cord::ChunkIterator Cord::ChunkRange::begin() const { in begin()
1134 inline Cord::ChunkIterator Cord::ChunkRange::end() const { in end()
1138 inline Cord::ChunkRange Cord::Chunks() const { return ChunkRange(this); } in Chunks()
1140 inline Cord::CharIterator& Cord::CharIterator::operator++() {
1149 inline Cord::CharIterator Cord::CharIterator::operator++(int) {
1155 inline bool Cord::CharIterator::operator==(const CharIterator& other) const {
1159 inline bool Cord::CharIterator::operator!=(const CharIterator& other) const {
1163 inline Cord::CharIterator::reference Cord::CharIterator::operator*() const {
1167 inline Cord::CharIterator::pointer Cord::CharIterator::operator->() const {
1171 inline Cord Cord::AdvanceAndRead(CharIterator* it, size_t n_bytes) { in AdvanceAndRead()
1176 inline void Cord::Advance(CharIterator* it, size_t n_bytes) { in Advance()
1181 inline absl::string_view Cord::ChunkRemaining(const CharIterator& it) { in ChunkRemaining()
1185 inline Cord::CharIterator Cord::char_begin() const { in char_begin()
1189 inline Cord::CharIterator Cord::char_end() const { return CharIterator(); } in char_end()
1191 inline Cord::CharIterator Cord::CharRange::begin() const { in begin()
1195 inline Cord::CharIterator Cord::CharRange::end() const { in end()
1199 inline Cord::CharRange Cord::Chars() const { return CharRange(this); } in Chars()
1201 inline void Cord::ForEachChunk( in ForEachChunk()
1212 inline bool operator==(const Cord& lhs, const Cord& rhs) {
1219 inline bool operator!=(const Cord& x, const Cord& y) { return !(x == y); }
1220 inline bool operator<(const Cord& x, const Cord& y) {
1223 inline bool operator>(const Cord& x, const Cord& y) {
1226 inline bool operator<=(const Cord& x, const Cord& y) {
1229 inline bool operator>=(const Cord& x, const Cord& y) {
1237 inline bool operator==(const Cord& lhs, absl::string_view rhs) {
1244 inline bool operator==(absl::string_view x, const Cord& y) { return y == x; }
1245 inline bool operator!=(const Cord& x, absl::string_view y) { return !(x == y); }
1246 inline bool operator!=(absl::string_view x, const Cord& y) { return !(x == y); }
1247 inline bool operator<(const Cord& x, absl::string_view y) {
1250 inline bool operator<(absl::string_view x, const Cord& y) {
1253 inline bool operator>(const Cord& x, absl::string_view y) { return y < x; }
1254 inline bool operator>(absl::string_view x, const Cord& y) { return y < x; }
1255 inline bool operator<=(const Cord& x, absl::string_view y) { return !(y < x); }
1256 inline bool operator<=(absl::string_view x, const Cord& y) { return !(y < x); }
1257 inline bool operator>=(const Cord& x, absl::string_view y) { return !(x < y); }
1258 inline bool operator>=(absl::string_view x, const Cord& y) { return !(x < y); }