Home
last modified time | relevance | path

Searched refs:rep (Results 1 – 25 of 426) sorted by relevance

12345678910>>...18

/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
Dcord_rep_ring.cc42 inline bool IsFlatOrExternal(CordRep* rep) { in IsFlatOrExternal() argument
43 return rep->IsFlat() || rep->IsExternal(); in IsFlatOrExternal()
58 auto* rep = CordRepFlat::New(n + extra); in CreateFlat() local
59 rep->length = n; in CreateFlat()
60 memcpy(rep->Data(), s, n); in CreateFlat()
61 return rep; in CreateFlat()
66 void UnrefEntries(const CordRepRing* rep, index_type head, index_type tail) { in UnrefEntries() argument
67 rep->ForEach(head, tail, [rep](index_type ix) { in UnrefEntries()
68 CordRep* child = rep->entry_child(ix); in UnrefEntries()
81 std::ostream& operator<<(std::ostream& s, const CordRepRing& rep) { in operator <<() argument
[all …]
Dcord_internal.cc36 void CordRep::Destroy(CordRep* rep) { in Destroy() argument
37 assert(rep != nullptr); in Destroy()
41 assert(!rep->refcount.IsImmortal()); in Destroy()
42 if (rep->tag == CONCAT) { in Destroy()
43 CordRepConcat* rep_concat = rep->concat(); in Destroy()
50 rep = nullptr; in Destroy()
52 rep = left; in Destroy()
55 } else if (rep->tag == BTREE) { in Destroy()
56 CordRepBtree::Destroy(rep->btree()); in Destroy()
57 rep = nullptr; in Destroy()
[all …]
Dcordz_info.cc77 void AnalyzeCordRep(const CordRep* rep) { in AnalyzeCordRep() argument
81 size_t refcount = rep->refcount.Get(); in AnalyzeCordRep()
82 RepRef repref{rep, (refcount > 1) ? refcount - 1 : 1}; in AnalyzeCordRep()
87 if (repref.rep != nullptr) { in AnalyzeCordRep()
88 if (repref.rep->tag == RING) { in AnalyzeCordRep()
90 } else if (repref.rep->tag == BTREE) { in AnalyzeCordRep()
92 } else if (repref.rep->tag == CONCAT) { in AnalyzeCordRep()
112 const CordRep* rep; member
138 const CordRep* rep = repref.rep; in AssertConcat() local
139 assert(rep == nullptr || rep->tag == CONCAT); in AssertConcat()
[all …]
Dcord_rep_test_util.h36 size_t start, size_t len, cord_internal::CordRep* rep) { in MakeSubstring() argument
40 sub->length = len <= 0 ? rep->length - start + len : len; in MakeSubstring()
41 sub->child = rep; in MakeSubstring()
118 inline void CordToString(cord_internal::CordRep* rep, std::string& s) { in CordToString() argument
120 size_t length = rep->length; in CordToString()
121 while (rep->tag == cord_internal::SUBSTRING) { in CordToString()
122 offset += rep->substring()->start; in CordToString()
123 rep = rep->substring()->child; in CordToString()
125 if (rep->tag == cord_internal::BTREE) { in CordToString()
126 for (cord_internal::CordRep* edge : rep->btree()->Edges()) { in CordToString()
[all …]
Dcord_rep_consume.cc58 void Consume(bool forward, CordRep* rep, ConsumeFn consume_fn) { in Consume() argument
60 size_t length = rep->length; in Consume()
62 CordRep* rep; in Consume() member
69 if (rep->tag == CONCAT) { in Consume()
70 std::array<CordRep*, 2> res = ClipConcat(rep->concat()); in Consume()
78 rep = right; in Consume()
86 rep = left; in Consume()
94 rep = left; in Consume()
98 rep = right; in Consume()
102 } else if (rep->tag == SUBSTRING) { in Consume()
[all …]
Dcord_rep_consume_test.cc34 int Depth(const CordRep* rep) { in Depth() argument
35 return (rep->tag == CONCAT) ? rep->concat()->depth() : 0; in Depth()
58 auto* rep = new CordRepSubstring(); in CreateSubstring() local
59 rep->length = length; in CreateSubstring()
60 rep->tag = SUBSTRING; in CreateSubstring()
61 rep->start = start; in CreateSubstring()
62 rep->child = child; in CreateSubstring()
63 return rep; in CreateSubstring()
98 for (CordRep* rep : flat) { in TEST()
99 EXPECT_TRUE(rep->refcount.IsOne()); in TEST()
[all …]
Dcord_rep_btree.h161 static CordRepBtree* Create(CordRep* rep);
176 static CordRepBtree* Append(CordRepBtree* tree, CordRep* rep);
177 static CordRepBtree* Prepend(CordRepBtree* tree, CordRep* rep);
267 static bool IsDataEdge(const CordRep* rep);
291 static void Dump(const CordRep* rep, std::ostream& stream);
292 static void Dump(const CordRep* rep, absl::string_view label,
294 static void Dump(const CordRep* rep, absl::string_view label,
322 static CordRepBtree* New(CordRep* rep);
420 static CordRepBtree* CreateSlow(CordRep* rep);
421 static CordRepBtree* AppendSlow(CordRepBtree*, CordRep* rep);
[all …]
/third_party/libdrm/tests/ttmtest/src/
Dxf86dri.c121 xXF86DRIQueryVersionReply rep; local
131 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) {
137 *majorVersion = rep.majorVersion;
138 *minorVersion = rep.minorVersion;
139 *patchVersion = rep.patchVersion;
153 xXF86DRIQueryDirectRenderingCapableReply rep; local
164 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) {
170 *isCapable = rep.isCapable;
185 xXF86DRIOpenConnectionReply rep; local
196 if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) {
[all …]
/third_party/boost/boost/regex/v4/
Dperl_matcher_non_recursive.hpp127 const re_repeat* rep; member
130 : saved_state(arg_id), count(c), rep(r), last_position(lp){} in saved_single_repeat()
606 const re_repeat* rep = static_cast<const re_repeat*>(pstate); in match_rep() local
612 take_first = rep->can_be_null & mask_take; in match_rep()
613 take_second = rep->can_be_null & mask_skip; in match_rep()
617 take_first = can_start(*position, rep->_map, (unsigned char)mask_take); in match_rep()
618 take_second = can_start(*position, rep->_map, (unsigned char)mask_skip); in match_rep()
622 … || (static_cast<saved_repeater<BidiIterator>*>(m_backup_state)->count.get_id() != rep->state_id) in match_rep()
623 || (next_count->get_id() != rep->state_id)) in match_rep()
627 push_repeater_count(rep->state_id, &next_count); in match_rep()
[all …]
Dperl_matcher_recursive.hpp327 const re_repeat* rep = static_cast<const re_repeat*>(pstate); in match_rep() local
332 …repeater_count<BidiIterator> r(rep->state_id, &next_count, position, this->recursion_stack.size() … in match_rep()
338 next_count->check_null_repeat(position, rep->max); in match_rep()
344 take_first = rep->can_be_null & mask_take; in match_rep()
345 take_second = rep->can_be_null & mask_skip; in match_rep()
349 take_first = can_start(*position, rep->_map, (unsigned char)mask_take); in match_rep()
350 take_second = can_start(*position, rep->_map, (unsigned char)mask_skip); in match_rep()
353 if(next_count->get_count() < rep->min) in match_rep()
360 pstate = rep->next.p; in match_rep()
365 …bool greedy = (rep->greedy) && (!(m_match_flags & regex_constants::match_any) || m_independent); in match_rep()
[all …]
/third_party/f2fs-tools/lib/
Dlibf2fs_zoned.c200 struct blk_zone_report *rep; in f2fs_report_zone() local
203 rep = malloc(sizeof(struct blk_zone_report) + sizeof(struct blk_zone)); in f2fs_report_zone()
204 if (!rep) { in f2fs_report_zone()
209 rep->sector = sector; in f2fs_report_zone()
210 rep->nr_zones = 1; in f2fs_report_zone()
211 ret = ioctl(c.devices[i].fd, BLKREPORTZONE, rep); in f2fs_report_zone()
218 *blkz = *(struct blk_zone *)(rep + 1); in f2fs_report_zone()
220 free(rep); in f2fs_report_zone()
229 struct blk_zone_report *rep; in f2fs_report_zones() local
237 rep = malloc(F2FS_REPORT_ZONES_BUFSZ); in f2fs_report_zones()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DReplaceableContextIterator.java38 this.rep=null; in ReplaceableContextIterator()
48 public void setText(Replaceable rep) { in setText() argument
49 this.rep=rep; in setText()
50 limit=contextLimit=rep.length(); in setText()
83 if(0<=lim && lim<=rep.length()) { in setLimit()
86 limit=rep.length(); in setLimit()
99 } else if(contextStart<=rep.length()) { in setContextLimits()
102 this.contextStart=rep.length(); in setContextLimits()
106 } else if(contextLimit<=rep.length()) { in setContextLimits()
109 this.contextLimit=rep.length(); in setContextLimits()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
Dcord.cc117 static void DumpNode(CordRep* rep, bool include_data, std::ostream* os,
139 static int Depth(const CordRep* rep) { in Depth() argument
140 if (rep->IsConcat()) { in Depth()
141 return rep->concat()->depth(); in Depth()
172 CordRepConcat* rep = new CordRepConcat(); in RawConcat() local
173 rep->tag = cord_internal::CONCAT; in RawConcat()
174 SetConcatChildren(rep, left, right); in RawConcat()
176 return rep; in RawConcat()
180 CordRep* rep = RawConcat(left, right); in Concat() local
181 if (rep != nullptr && !IsRootBalanced(rep)) { in Concat()
[all …]
/third_party/abseil-cpp/absl/strings/
Dcord.cc200 static void DumpNode(CordRep* rep, bool include_data, std::ostream* os);
223 inline CordRep* Ref(CordRep* rep) { in Ref() argument
224 if (rep != nullptr) { in Ref()
225 rep->refcount.Increment(); in Ref()
227 return rep; in Ref()
245 static void UnrefInternal(CordRep* rep) { in UnrefInternal() argument
246 assert(rep != nullptr); in UnrefInternal()
250 if (rep->tag == CONCAT) { in UnrefInternal()
251 CordRepConcat* rep_concat = rep->concat(); in UnrefInternal()
258 rep = nullptr; in UnrefInternal()
[all …]
/third_party/boost/libs/chrono/example/
Druntime_resolution.cpp89 typedef long long rep; typedef in runtime_resolution::duration
91 rep rep_;
99 explicit duration(const rep& r) : rep_(r) {} in duration()
103 : rep_(static_cast<rep>(d.count() * ticks_per_nanosecond)) {} in duration()
110 rep count() const {return rep_;} in count()
116 duration& operator*=(rep rhs) {rep_ *= rhs; return *this;} in operator *=()
117 duration& operator/=(rep rhs) {rep_ /= rhs; return *this;} in operator /=()
128 friend duration operator*(duration x, rep y) {return x *= y;} in operator *()
129 friend duration operator*(rep x, duration y) {return y *= x;} in operator *()
130 friend duration operator/(duration x, rep y) {return x /= y;} in operator /()
[all …]
/third_party/boost/doc/html/boost_asio/example/cpp03/http/server3/
Drequest_handler.cpp28 void request_handler::handle_request(const request& req, reply& rep) in handle_request() argument
34 rep = reply::stock_reply(reply::bad_request); in handle_request()
42 rep = reply::stock_reply(reply::bad_request); in handle_request()
66 rep = reply::stock_reply(reply::not_found); in handle_request()
71 rep.status = reply::ok; in handle_request()
74 rep.content.append(buf, is.gcount()); in handle_request()
75 rep.headers.resize(2); in handle_request()
76 rep.headers[0].name = "Content-Length"; in handle_request()
77 rep.headers[0].value = boost::lexical_cast<std::string>(rep.content.size()); in handle_request()
78 rep.headers[1].name = "Content-Type"; in handle_request()
[all …]
/third_party/boost/doc/html/boost_asio/example/cpp03/http/server2/
Drequest_handler.cpp28 void request_handler::handle_request(const request& req, reply& rep) in handle_request() argument
34 rep = reply::stock_reply(reply::bad_request); in handle_request()
42 rep = reply::stock_reply(reply::bad_request); in handle_request()
66 rep = reply::stock_reply(reply::not_found); in handle_request()
71 rep.status = reply::ok; in handle_request()
74 rep.content.append(buf, is.gcount()); in handle_request()
75 rep.headers.resize(2); in handle_request()
76 rep.headers[0].name = "Content-Length"; in handle_request()
77 rep.headers[0].value = boost::lexical_cast<std::string>(rep.content.size()); in handle_request()
78 rep.headers[1].name = "Content-Type"; in handle_request()
[all …]
/third_party/boost/doc/html/boost_asio/example/cpp03/http/server/
Drequest_handler.cpp28 void request_handler::handle_request(const request& req, reply& rep) in handle_request() argument
34 rep = reply::stock_reply(reply::bad_request); in handle_request()
42 rep = reply::stock_reply(reply::bad_request); in handle_request()
66 rep = reply::stock_reply(reply::not_found); in handle_request()
71 rep.status = reply::ok; in handle_request()
74 rep.content.append(buf, is.gcount()); in handle_request()
75 rep.headers.resize(2); in handle_request()
76 rep.headers[0].name = "Content-Length"; in handle_request()
77 rep.headers[0].value = boost::lexical_cast<std::string>(rep.content.size()); in handle_request()
78 rep.headers[1].name = "Content-Type"; in handle_request()
[all …]
/third_party/boost/doc/html/boost_asio/example/cpp03/http/server4/
Dfile_handler.cpp28 void file_handler::operator()(const request& req, reply& rep) in operator ()() argument
34 rep = reply::stock_reply(reply::bad_request); in operator ()()
42 rep = reply::stock_reply(reply::bad_request); in operator ()()
66 rep = reply::stock_reply(reply::not_found); in operator ()()
71 rep.status = reply::ok; in operator ()()
74 rep.content.append(buf, is.gcount()); in operator ()()
75 rep.headers.resize(2); in operator ()()
76 rep.headers[0].name = "Content-Length"; in operator ()()
77 rep.headers[0].value = boost::lexical_cast<std::string>(rep.content.size()); in operator ()()
78 rep.headers[1].name = "Content-Type"; in operator ()()
[all …]
/third_party/boost/libs/asio/example/cpp03/http/server3/
Drequest_handler.cpp28 void request_handler::handle_request(const request& req, reply& rep) in handle_request() argument
34 rep = reply::stock_reply(reply::bad_request); in handle_request()
42 rep = reply::stock_reply(reply::bad_request); in handle_request()
66 rep = reply::stock_reply(reply::not_found); in handle_request()
71 rep.status = reply::ok; in handle_request()
74 rep.content.append(buf, is.gcount()); in handle_request()
75 rep.headers.resize(2); in handle_request()
76 rep.headers[0].name = "Content-Length"; in handle_request()
77 rep.headers[0].value = boost::lexical_cast<std::string>(rep.content.size()); in handle_request()
78 rep.headers[1].name = "Content-Type"; in handle_request()
[all …]
/third_party/boost/doc/html/boost_asio/example/cpp11/http/server/
Drequest_handler.cpp27 void request_handler::handle_request(const request& req, reply& rep) in handle_request() argument
33 rep = reply::stock_reply(reply::bad_request); in handle_request()
41 rep = reply::stock_reply(reply::bad_request); in handle_request()
65 rep = reply::stock_reply(reply::not_found); in handle_request()
70 rep.status = reply::ok; in handle_request()
73 rep.content.append(buf, is.gcount()); in handle_request()
74 rep.headers.resize(2); in handle_request()
75 rep.headers[0].name = "Content-Length"; in handle_request()
76 rep.headers[0].value = std::to_string(rep.content.size()); in handle_request()
77 rep.headers[1].name = "Content-Type"; in handle_request()
[all …]
/third_party/boost/libs/asio/example/cpp03/http/server4/
Dfile_handler.cpp28 void file_handler::operator()(const request& req, reply& rep) in operator ()() argument
34 rep = reply::stock_reply(reply::bad_request); in operator ()()
42 rep = reply::stock_reply(reply::bad_request); in operator ()()
66 rep = reply::stock_reply(reply::not_found); in operator ()()
71 rep.status = reply::ok; in operator ()()
74 rep.content.append(buf, is.gcount()); in operator ()()
75 rep.headers.resize(2); in operator ()()
76 rep.headers[0].name = "Content-Length"; in operator ()()
77 rep.headers[0].value = boost::lexical_cast<std::string>(rep.content.size()); in operator ()()
78 rep.headers[1].name = "Content-Type"; in operator ()()
[all …]
/third_party/boost/libs/asio/example/cpp11/http/server/
Drequest_handler.cpp27 void request_handler::handle_request(const request& req, reply& rep) in handle_request() argument
33 rep = reply::stock_reply(reply::bad_request); in handle_request()
41 rep = reply::stock_reply(reply::bad_request); in handle_request()
65 rep = reply::stock_reply(reply::not_found); in handle_request()
70 rep.status = reply::ok; in handle_request()
73 rep.content.append(buf, is.gcount()); in handle_request()
74 rep.headers.resize(2); in handle_request()
75 rep.headers[0].name = "Content-Length"; in handle_request()
76 rep.headers[0].value = std::to_string(rep.content.size()); in handle_request()
77 rep.headers[1].name = "Content-Type"; in handle_request()
[all …]
/third_party/boost/libs/asio/example/cpp03/http/server2/
Drequest_handler.cpp28 void request_handler::handle_request(const request& req, reply& rep) in handle_request() argument
34 rep = reply::stock_reply(reply::bad_request); in handle_request()
42 rep = reply::stock_reply(reply::bad_request); in handle_request()
66 rep = reply::stock_reply(reply::not_found); in handle_request()
71 rep.status = reply::ok; in handle_request()
74 rep.content.append(buf, is.gcount()); in handle_request()
75 rep.headers.resize(2); in handle_request()
76 rep.headers[0].name = "Content-Length"; in handle_request()
77 rep.headers[0].value = boost::lexical_cast<std::string>(rep.content.size()); in handle_request()
78 rep.headers[1].name = "Content-Type"; in handle_request()
[all …]
/third_party/boost/libs/asio/example/cpp03/http/server/
Drequest_handler.cpp28 void request_handler::handle_request(const request& req, reply& rep) in handle_request() argument
34 rep = reply::stock_reply(reply::bad_request); in handle_request()
42 rep = reply::stock_reply(reply::bad_request); in handle_request()
66 rep = reply::stock_reply(reply::not_found); in handle_request()
71 rep.status = reply::ok; in handle_request()
74 rep.content.append(buf, is.gcount()); in handle_request()
75 rep.headers.resize(2); in handle_request()
76 rep.headers[0].name = "Content-Length"; in handle_request()
77 rep.headers[0].value = boost::lexical_cast<std::string>(rep.content.size()); in handle_request()
78 rep.headers[1].name = "Content-Type"; in handle_request()
[all …]

12345678910>>...18