Home
last modified time | relevance | path

Searched refs:MakeSubstring (Results 1 – 6 of 6) sorted by relevance

/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
Dcord_rep_btree.cc130 inline CordRep* MakeSubstring(CordRep* rep, size_t offset, size_t n) { in MakeSubstring() function
137 inline CordRep* MakeSubstring(CordRep* rep, size_t offset) { in MakeSubstring() function
650 return {MakeSubstring(CordRep::Ref(back), offset), height}; in CopySuffix()
679 sub->edges_[begin] = MakeSubstring(CordRep::Ref(edge), offset, len); in CopySuffix()
707 if (--height < 0) return {MakeSubstring(CordRep::Ref(front), 0, n), -1}; in CopyPrefix()
730 sub->edges_[end++] = MakeSubstring(CordRep::Ref(edge), 0, n); in CopyPrefix()
758 if (--height < 0) return MakeSubstring(CordRep::Ref(left), front.n, n); in SubTree()
793 prefix = CopyResult{MakeSubstring(CordRep::Ref(left), front.n), -1}; in SubTree()
794 suffix = CopyResult{MakeSubstring(CordRep::Ref(right), 0, back.n), -1}; in SubTree()
896 r = MakeSubstring(r, offset, length); in CreateSlow()
[all …]
Dcord_rep_btree_navigator_test.cc43 using ::absl::cordrep_testing::MakeSubstring;
63 flats_[1] = MakeSubstring(kCharsPerFlat, kCharsPerFlat, MakeFlat(data_)); in CordRepBtreeNavigatorTest()
66 flats_[0] = MakeSubstring(0, kCharsPerFlat, MakeFlat(data_)); in CordRepBtreeNavigatorTest()
Dcord_rep_btree_test.cc56 using ::absl::cordrep_testing::MakeSubstring;
307 CordRep* substr1 = MakeSubstring(1, 6, CordRep::Ref(flat)); in TEST()
308 CordRep* substr2 = MakeSubstring(1, 6, CordRep::Ref(external)); in TEST()
310 CordRep* bad_substr = MakeSubstring(1, 2, CordRep::Ref(substr1)); in TEST()
1011 tree = tree->Append(tree, MakeSubstring(4, 5, MakeFlat("abcdefghijklm"))); in TEST()
1045 tree = tree->Append(tree, MakeSubstring(4, 3, MakeFlat("abcdefghijklm"))); in TEST()
1046 tree = tree->Append(tree, MakeSubstring(8, 3, MakeFlat("abcdefghijklm"))); in TEST()
1163 CordRep* substr_flat = MakeSubstring(1, 6, CordRep::Ref(flat)); in TEST()
1164 CordRep* substr_external = MakeSubstring(2, 7, CordRep::Ref(external)); in TEST()
Dcord_rep_test_util.h35 inline cord_internal::CordRepSubstring* MakeSubstring( in MakeSubstring() function
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
Dcord_ring_test.cc246 CordRepSubstring* MakeSubstring(size_t start, size_t len, CordRep* rep) { in MakeSubstring() function
257 return MakeSubstring(start, rep->length - start, rep); in RemovePrefix()
262 return MakeSubstring(0, rep->length - length, rep); in RemoveSuffix()
534 CordRep* sub = RefIfInputShared(MakeSubstring(2, 11, ring)); in TEST_P()
558 auto* child = RefIfInputSharedIndirect(MakeSubstring(4, 20, flat)); in TEST_P()
577 auto* child = RefIfInputSharedIndirect(MakeSubstring(1, 24, external)); in TEST_P()
590 RefIfInputSharedIndirect(MakeSubstring(1 << 19, (1 << 19) - 6, external)); in TEST_P()
617 auto* child = RefIfInputShared(MakeSubstring(off, len, concat)); in TEST_P()
651 CordRep* substring = MakeSubstring(10, 26, child); in TEST_P()
1104 CordRep* stripped = MakeSubstring(7, child->length - 27, child); in TEST_P()
[all …]
Dcord_test.cc192 static Cord MakeSubstring(Cord src, size_t offset, size_t length) { in MakeSubstring() function in absl::CordTestPeer
507 absl::Cord sub = absl::CordTestPeer::MakeSubstring(c, 1, c.size() - 1); in TEST_P()
523 absl::Cord sub = absl::CordTestPeer::MakeSubstring(c, 1, c.size() - 1); in TEST_P()
529 absl::Cord sub = absl::CordTestPeer::MakeSubstring(c, 1, c.size() - 1); in TEST_P()