Home
last modified time | relevance | path

Searched refs:begin (Results 1 - 25 of 10098) sorted by relevance

12345678910>>...404

/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
H A Dcharconv_parse.cc237 // Reads decimal digits from [begin, end) into *out. Returns the number of
249 int ConsumeDigits(const char* begin, const char* end, int max_digits, T* out, in ConsumeDigits() argument
256 const char* const original_begin = begin; in ConsumeDigits()
261 while (!*out && end != begin && *begin == '0') ++begin; in ConsumeDigits()
265 (end - begin > max_digits) ? begin + max_digits : end; in ConsumeDigits()
266 while (begin < significant_digits_end && IsDigit<base>(*begin)) { in ConsumeDigits()
297 ParseInfinityOrNan(const char* begin, const char* end, strings_internal::ParsedFloat* out) ParseInfinityOrNan() argument
355 ParseFloat(const char* begin, const char* end, chars_format format_flags) ParseFloat() argument
[all...]
/foundation/communication/netmanager_ext/services/mdnsmanager/src/
H A Dmdns_packet_parser.cpp34 const uint8_t *begin = reinterpret_cast<const uint8_t *>(&data); in WriteRawData() local
35 payload.insert(payload.end(), begin, begin + sizeof(T)); in WriteRawData()
40 const uint8_t *begin = reinterpret_cast<const uint8_t *>(&data); in WriteRawData() local
42 ptr[i] = *begin++; in WriteRawData()
90 const uint8_t *MDnsPayloadParser::Parse(const uint8_t *begin, const MDnsPayload &payload, MDnsMessage &msg) in Parse() argument
92 begin = ParseHeader(begin, payload, msg.header); in Parse()
94 return begin; in Parse()
97 begin in Parse()
123 ParseHeader(const uint8_t *begin, const MDnsPayload &payload, DNSProto::Header &header) ParseHeader() argument
141 ParseQuestion(const uint8_t *begin, const MDnsPayload &payload, std::vector<DNSProto::Question> &questions) ParseQuestion() argument
164 ParseRR(const uint8_t *begin, const MDnsPayload &payload, std::vector<DNSProto::ResourceRecord> &answers) ParseRR() argument
189 ParseRData(const uint8_t *begin, const MDnsPayload &payload, int type, int length, std::any &data) ParseRData() argument
239 ParseSrv(const uint8_t *begin, const MDnsPayload &payload, std::any &data) ParseSrv() argument
261 ParseTxt(const uint8_t *begin, const MDnsPayload &payload, int length, std::any &data) ParseTxt() argument
273 ParseDnsString(const uint8_t *begin, const MDnsPayload &payload, std::string &str) ParseDnsString() argument
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/algorithm/
H A Dalgorithm_test.cc32 EXPECT_TRUE(absl::equal(v1.begin(), v1.end(), v2.begin(), v2.end())); in TEST()
33 EXPECT_FALSE(absl::equal(v1.begin(), v1.end(), v3.begin(), v3.end())); in TEST()
34 EXPECT_FALSE(absl::equal(v1.begin(), v1.end(), v4.begin(), v4.end())); in TEST()
43 EXPECT_TRUE(absl::equal(lst1.begin(), lst1.end(), lst2.begin(), lst2.end())); in TEST()
44 EXPECT_FALSE(absl::equal(lst1.begin(), lst1.end(), lst3.begin(), lst in TEST()
[all...]
/third_party/json/tests/src/
H A Dunit-algorithms.cpp23 CHECK(std::all_of(j_array.begin(), j_array.end(), [](const json & value)
27 CHECK(std::all_of(j_object.begin(), j_object.end(), [](const json & value)
35 CHECK(std::any_of(j_array.begin(), j_array.end(), [](const json & value)
39 CHECK(std::any_of(j_object.begin(), j_object.end(), [](const json & value)
47 CHECK(std::none_of(j_array.begin(), j_array.end(), [](const json & value)
51 CHECK(std::none_of(j_object.begin(), j_object.end(), [](const json & value)
84 std::for_each(j_array.begin(), j_array.end(), add17);
92 CHECK(std::count(j_array.begin(), j_array.end(), json(true)) == 1);
97 CHECK(std::count_if(j_array.begin(), j_array.end(), [](const json & value)
101 CHECK(std::count_if(j_array.begin(), j_arra
[all...]
/arkcompiler/ets_runtime/ecmascript/mem/
H A Dremembered_set.h45 bool Insert(uintptr_t begin, uintptr_t addr) in Insert() argument
47 return GCBitsetData()->SetBit<AccessType::NON_ATOMIC>((addr - begin) >> TAGGED_TYPE_SIZE_LOG); in Insert()
50 bool InsertRange(uintptr_t begin, uintptr_t addr, uint32_t mask) in InsertRange() argument
52 return GCBitsetData()->SetBitRange((addr - begin) >> TAGGED_TYPE_SIZE_LOG, mask); in InsertRange()
55 bool AtomicInsert(uintptr_t begin, uintptr_t addr) in AtomicInsert() argument
57 return GCBitsetData()->SetBit<AccessType::ATOMIC>((addr - begin) >> TAGGED_TYPE_SIZE_LOG); in AtomicInsert()
60 void ClearBit(uintptr_t begin, uintptr_t addr) in ClearBit() argument
62 GCBitsetData()->ClearBit((addr - begin) >> TAGGED_TYPE_SIZE_LOG); in ClearBit()
65 void ClearRange(uintptr_t begin, uintptr_t start, uintptr_t end) in ClearRange() argument
68 (start - begin) >> TAGGED_TYPE_SIZE_LO in ClearRange()
71 AtomicClearRange(uintptr_t begin, uintptr_t start, uintptr_t end) AtomicClearRange() argument
77 TestBit(uintptr_t begin, uintptr_t addr) const TestBit() argument
83 IterateAllMarkedBits(uintptr_t begin, Visitor visitor) IterateAllMarkedBits() argument
89 AtomicIterateAllMarkedBits(uintptr_t begin, Visitor visitor) AtomicIterateAllMarkedBits() argument
95 IterateAllMarkedBitsConst(uintptr_t begin, Visitor visitor) const IterateAllMarkedBitsConst() argument
[all...]
/third_party/skia/third_party/externals/spirv-tools/test/opt/
H A Diterator_test.cpp36 UptrVectorIterator<int> it(&data, data.begin()); in TEST()
54 UptrVectorIterator<int> begin(&data, data.begin()); in TEST()
58 EXPECT_NE(begin, it); in TEST()
61 EXPECT_EQ(begin, it); in TEST()
71 UptrVectorIterator<int> it(&data, data.begin()); in TEST()
88 UptrVectorIterator<int> begin(&data, data.begin()); in TEST()
96 // Decrementing .begin() is undefined behavior. in TEST()
107 UptrVectorIterator<int> it(&data, data.begin()); in TEST()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/
H A Diterator_test.cpp36 UptrVectorIterator<int> it(&data, data.begin()); in TEST()
54 UptrVectorIterator<int> begin(&data, data.begin()); in TEST()
58 EXPECT_NE(begin, it); in TEST()
61 EXPECT_EQ(begin, it); in TEST()
71 UptrVectorIterator<int> it(&data, data.begin()); in TEST()
88 UptrVectorIterator<int> begin(&data, data.begin()); in TEST()
96 // Decrementing .begin() is undefined behavior. in TEST()
107 UptrVectorIterator<int> it(&data, data.begin()); in TEST()
[all...]
/third_party/spirv-tools/test/opt/
H A Diterator_test.cpp36 UptrVectorIterator<int> it(&data, data.begin()); in TEST()
54 UptrVectorIterator<int> begin(&data, data.begin()); in TEST()
58 EXPECT_NE(begin, it); in TEST()
61 EXPECT_EQ(begin, it); in TEST()
71 UptrVectorIterator<int> it(&data, data.begin()); in TEST()
88 UptrVectorIterator<int> begin(&data, data.begin()); in TEST()
96 // Decrementing .begin() is undefined behavior. in TEST()
107 UptrVectorIterator<int> it(&data, data.begin()); in TEST()
[all...]
/third_party/node/deps/ngtcp2/nghttp3/lib/
H A Dnghttp3_range.c29 void nghttp3_range_init(nghttp3_range *r, uint64_t begin, uint64_t end) { in nghttp3_range_init() argument
30 r->begin = begin; in nghttp3_range_init()
37 uint64_t begin = nghttp3_max(a->begin, b->begin); in nghttp3_range_intersect() local
39 if (begin < end) { in nghttp3_range_intersect()
40 nghttp3_range_init(&r, begin, end); in nghttp3_range_intersect()
45 uint64_t nghttp3_range_len(const nghttp3_range *r) { return r->end - r->begin; } in nghttp3_range_len()
48 return a->begin in nghttp3_range_eq()
[all...]
/third_party/node/deps/ngtcp2/ngtcp2/lib/
H A Dngtcp2_range.c28 void ngtcp2_range_init(ngtcp2_range *r, uint64_t begin, uint64_t end) { in ngtcp2_range_init() argument
29 r->begin = begin; in ngtcp2_range_init()
36 uint64_t begin = ngtcp2_max(a->begin, b->begin); in ngtcp2_range_intersect() local
38 if (begin < end) { in ngtcp2_range_intersect()
39 ngtcp2_range_init(&r, begin, end); in ngtcp2_range_intersect()
44 uint64_t ngtcp2_range_len(const ngtcp2_range *r) { return r->end - r->begin; } in ngtcp2_range_len()
47 return a->begin in ngtcp2_range_eq()
[all...]
/arkcompiler/runtime_core/static_core/runtime/mem/gc/
H A Dbitmap.h134 * @brief Iterates over marked bits in range [begin, end) sequentially.
138 * @param begin - beginning index of the range, inclusive.
144 void IterateOverSetBitsInRange(size_t begin, size_t end, const VisitorType &visitor) in IterateOverSetBitsInRange() argument
146 CheckBitRange(begin, end); in IterateOverSetBitsInRange()
147 if (UNLIKELY(begin == end)) { in IterateOverSetBitsInRange()
151 auto bitmapWord = GetBitmapWord<ATOMIC>(begin); in IterateOverSetBitsInRange()
152 auto offsetWithinWord = GetBitIdxWithinWord(begin); in IterateOverSetBitsInRange()
153 // first word, clear bits before begin in IterateOverSetBitsInRange()
155 auto offsetWordBegin = GetWordIdx(begin) * BITSPERWORD; in IterateOverSetBitsInRange()
200 * @brief Iterates over all bits in range [begin, en
207 IterateOverBitsInRange(size_t begin, size_t end, const VisitorType &visitor) IterateOverBitsInRange() argument
227 SetRangeWithinWord(size_t begin, size_t end) SetRangeWithinWord() argument
239 ClearRangeWithinWord(size_t begin, size_t end) ClearRangeWithinWord() argument
277 FindHighestPrecedingOrSameBit(size_t begin) FindHighestPrecedingOrSameBit() argument
[all...]
/third_party/icu/icu4c/source/common/
H A Dchariter.cpp24 : textLength(0), pos(0), begin(0), end(0) { in CharacterIterator()
28 : textLength(length), pos(0), begin(0), end(length) { in CharacterIterator()
35 : textLength(length), pos(position), begin(0), end(length) { in CharacterIterator()
47 : textLength(length), pos(position), begin(textBegin), end(textEnd) { in CharacterIterator()
51 if(begin < 0) { in CharacterIterator()
52 begin = 0; in CharacterIterator()
53 } else if(begin > textLength) { in CharacterIterator()
54 begin = textLength; in CharacterIterator()
56 if(end < begin) { in CharacterIterator()
57 end = begin; in CharacterIterator()
[all...]
H A Duchriter.cpp83 && begin == realThat.begin in operator ==()
89 return ustr_hashUCharsN(text, textLength) ^ pos ^ begin ^ end; in hashCode()
99 pos = begin; in first()
109 pos = begin; in firstPostInc()
120 if(pos > begin) { in last()
129 if(position < begin) { in setIndex()
130 pos = begin; in setIndex()
145 if (pos >= begin && pos < end) { in current()
179 if (pos > begin) { in previous()
[all...]
/third_party/node/deps/icu-small/source/common/
H A Dchariter.cpp24 : textLength(0), pos(0), begin(0), end(0) { in CharacterIterator()
28 : textLength(length), pos(0), begin(0), end(length) { in CharacterIterator()
35 : textLength(length), pos(position), begin(0), end(length) { in CharacterIterator()
47 : textLength(length), pos(position), begin(textBegin), end(textEnd) { in CharacterIterator()
51 if(begin < 0) { in CharacterIterator()
52 begin = 0; in CharacterIterator()
53 } else if(begin > textLength) { in CharacterIterator()
54 begin = textLength; in CharacterIterator()
56 if(end < begin) { in CharacterIterator()
57 end = begin; in CharacterIterator()
[all...]
H A Duchriter.cpp83 && begin == realThat.begin in operator ==()
89 return ustr_hashUCharsN(text, textLength) ^ pos ^ begin ^ end; in hashCode()
99 pos = begin; in first()
109 pos = begin; in firstPostInc()
120 if(pos > begin) { in last()
129 if(position < begin) { in setIndex()
130 pos = begin; in setIndex()
145 if (pos >= begin && pos < end) { in current()
179 if (pos > begin) { in previous()
[all...]
/third_party/skia/third_party/externals/icu/source/common/
H A Dchariter.cpp24 : textLength(0), pos(0), begin(0), end(0) { in CharacterIterator()
28 : textLength(length), pos(0), begin(0), end(length) { in CharacterIterator()
35 : textLength(length), pos(position), begin(0), end(length) { in CharacterIterator()
47 : textLength(length), pos(position), begin(textBegin), end(textEnd) { in CharacterIterator()
51 if(begin < 0) { in CharacterIterator()
52 begin = 0; in CharacterIterator()
53 } else if(begin > textLength) { in CharacterIterator()
54 begin = textLength; in CharacterIterator()
56 if(end < begin) { in CharacterIterator()
57 end = begin; in CharacterIterator()
[all...]
H A Duchriter.cpp83 && begin == realThat.begin in operator ==()
89 return ustr_hashUCharsN(text, textLength) ^ pos ^ begin ^ end; in hashCode()
99 pos = begin; in first()
109 pos = begin; in firstPostInc()
120 if(pos > begin) { in last()
129 if(position < begin) { in setIndex()
130 pos = begin; in setIndex()
145 if (pos >= begin && pos < end) { in current()
179 if (pos > begin) { in previous()
[all...]
/arkcompiler/runtime_core/libpandabase/tests/
H A Dsmall_vector_test.cpp72 ASSERT_TRUE(std::equal(values.begin(), values.begin() + 5, vector.begin())); in TestVectorGrow()
74 std::copy(values.begin() + 5, values.end(), std::back_inserter(vector)); in TestVectorGrow()
100 std::copy(values.begin(), values.begin() + 4, std::back_inserter(vector)); in TestVectorFind()
103 ASSERT_TRUE(std::equal(vector.begin(), vector.end(), values.begin())); in TestVectorFind()
106 auto it = std::find(vector.begin(), vector.end(), 30); in TestVectorFind()
109 ASSERT_EQ(std::distance(vector.begin(), i in TestVectorFind()
[all...]
/arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/
H A Dcollection_set.h35 explicit CollectionSet(const Container &set) : collectionSet_(set.begin(), set.end()) in CollectionSet()
59 auto begin() // NOLINT(readability-identifier-naming) in begin() function in ark::mem::CollectionSet
61 return collectionSet_.begin(); in begin()
64 auto begin() const // NOLINT(readability-identifier-naming) in begin() function in ark::mem::CollectionSet
66 return collectionSet_.begin(); in begin()
98 return Range<PandaVector<Region *>::iterator>(begin(), begin() + tenuredBegin_); in Young()
103 return Range<PandaVector<Region *>::const_iterator>(begin(), begin() + tenuredBegin_); in Young()
108 return Range<PandaVector<Region *>::iterator>(begin() in Tenured()
[all...]
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/
H A Dwifi_p2p_dns_txt_record.cpp47 data.insert(data.begin(), oldData.begin(), oldData.begin() + insertIndex); in InsertData()
49 data.insert(data.begin() + newDataLength - secondHalfLength, in InsertData()
50 oldData.begin() + insertIndex, in InsertData()
51 oldData.begin() + insertIndex + secondHalfLength); in InsertData()
52 data.insert(data.begin() + insertIndex, static_cast<unsigned char>(addLength)); in InsertData()
53 data.insert(data.begin() + insertIndex + mapLengthSize, keyBytes.begin(), keyBytes.end()); in InsertData()
56 data.insert(data.begin() in InsertData()
[all...]
/third_party/skia/tests/
H A DPolyUtilsTest.cpp24 REPORTER_ASSERT(reporter, SkGetPolygonWinding(poly.begin(), poly.count()) < 0); in DEF_TEST()
25 REPORTER_ASSERT(reporter, SkIsConvexPolygon(poly.begin(), poly.count())); in DEF_TEST()
26 REPORTER_ASSERT(reporter, SkIsSimplePolygon(poly.begin(), poly.count())); in DEF_TEST()
27 REPORTER_ASSERT(reporter, SkTriangulateSimplePolygon(poly.begin(), indexMap, poly.count(), in DEF_TEST()
32 REPORTER_ASSERT(reporter, SkGetPolygonWinding(poly.begin(), poly.count()) > 0); in DEF_TEST()
33 REPORTER_ASSERT(reporter, SkIsConvexPolygon(poly.begin(), poly.count())); in DEF_TEST()
34 REPORTER_ASSERT(reporter, SkIsSimplePolygon(poly.begin(), poly.count())); in DEF_TEST()
36 REPORTER_ASSERT(reporter, SkTriangulateSimplePolygon(poly.begin(), indexMap, poly.count(), in DEF_TEST()
41 REPORTER_ASSERT(reporter, SkGetPolygonWinding(poly.begin(), poly.count()) == 0); in DEF_TEST()
43 REPORTER_ASSERT(reporter, SkIsConvexPolygon(poly.begin(), pol in DEF_TEST()
[all...]
/third_party/nghttp2/src/
H A Dbase64_test.cc41 auto out = base64::encode(std::begin(in), std::end(in)); in test_base64_encode()
46 auto out = base64::encode(std::begin(in), std::end(in)); in test_base64_encode()
51 auto out = base64::encode(std::begin(in), std::end(in)); in test_base64_encode()
56 auto out = base64::encode(std::begin(in), std::end(in)); in test_base64_encode()
65 auto out = base64::decode(std::begin(in), std::end(in)); in test_base64_decode()
67 CU_ASSERT("\xff" == base64::decode(balloc, std::begin(in), std::end(in))); in test_base64_decode()
71 auto out = base64::decode(std::begin(in), std::end(in)); in test_base64_decode()
74 base64::decode(balloc, std::begin(in), std::end(in))); in test_base64_decode()
78 auto out = base64::decode(std::begin(in), std::end(in)); in test_base64_decode()
81 base64::decode(balloc, std::begin(i in test_base64_decode()
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DStringCharacterIterator.java36 private int begin; field in StringCharacterIterator
38 // invariant: begin <= pos <= end
69 * @param begin Index of the first character
75 public StringCharacterIterator(String text, int begin, int end, int pos) { in StringCharacterIterator() argument
81 if (begin < 0 || begin > end || end > text.length()) { in StringCharacterIterator()
85 if (pos < begin || pos > end) { in StringCharacterIterator()
89 this.begin = begin; in StringCharacterIterator()
109 this.begin in setText()
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
H A DStringCharacterIterator.java38 private int begin; field in StringCharacterIterator
40 // invariant: begin <= pos <= end
71 * @param begin Index of the first character
77 public StringCharacterIterator(String text, int begin, int end, int pos) { in StringCharacterIterator() argument
83 if (begin < 0 || begin > end || end > text.length()) { in StringCharacterIterator()
87 if (pos < begin || pos > end) { in StringCharacterIterator()
91 this.begin = begin; in StringCharacterIterator()
111 this.begin in setText()
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/
H A DHandleAllocator.cpp52 std::pop_heap(mReleasedList.begin(), mReleasedList.end(), std::greater<GLuint>()); in allocate()
65 auto listIt = mUnallocatedList.begin(); in allocate()
67 GLuint freeListHandle = listIt->begin; in allocate()
70 if (listIt->begin == listIt->end) in allocate()
76 listIt->begin++; in allocate()
96 std::push_heap(mReleasedList.begin(), mReleasedList.end(), std::greater<GLuint>()); in release()
109 auto releasedIt = std::find(mReleasedList.begin(), mReleasedList.end(), handle); in reserve()
113 std::make_heap(mReleasedList.begin(), mReleasedList.end(), std::greater<GLuint>()); in reserve()
119 auto boundIt = std::lower_bound(mUnallocatedList.begin(), mUnallocatedList.end(), handle, in reserve()
124 GLuint begin in reserve() local
[all...]

Completed in 9 milliseconds

12345678910>>...404