| /third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
| H A D | charconv_parse.cc | 237 // 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 D | mdns_packet_parser.cpp | 34 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 D | algorithm_test.cc | 32 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 D | unit-algorithms.cpp | 23 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...] |
| H A D | unit-capacity.cpp | 32 CHECK(j.empty() == (j.begin() == j.end())); 33 CHECK(j_const.empty() == (j_const.begin() == j_const.end())); 50 CHECK(j.empty() == (j.begin() == j.end())); 51 CHECK(j_const.empty() == (j_const.begin() == j_const.end())); 70 CHECK(j.empty() == (j.begin() == j.end())); 71 CHECK(j_const.empty() == (j_const.begin() == j_const.end())); 88 CHECK(j.empty() == (j.begin() == j.end())); 89 CHECK(j_const.empty() == (j_const.begin() == j_const.end())); 109 CHECK(j.empty() == (j.begin() == j.end())); 110 CHECK(j_const.empty() == (j_const.begin() [all...] |
| /third_party/skia/third_party/externals/spirv-tools/test/opt/ |
| H A D | iterator_test.cpp | 36 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 D | iterator_test.cpp | 36 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 D | iterator_test.cpp | 36 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 D | nghttp3_range.c | 29 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 D | ngtcp2_range.c | 28 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...] |
| H A D | ngtcp2_rob.c | 32 int ngtcp2_rob_gap_new(ngtcp2_rob_gap **pg, uint64_t begin, uint64_t end, in ngtcp2_rob_gap_new() argument 39 (*pg)->range.begin = begin; in ngtcp2_rob_gap_new() 56 (*pd)->range.begin = offset; in ngtcp2_rob_data_new() 58 (*pd)->begin = (uint8_t *)(*pd) + sizeof(ngtcp2_rob_data); in ngtcp2_rob_data_new() 59 (*pd)->end = (*pd)->begin + chunk; in ngtcp2_rob_data_new() 138 if (d == NULL || offset < d->range.begin) { in rob_write_data() 152 n = (size_t)ngtcp2_min((uint64_t)len, d->range.begin + rob->chunk - offset); in rob_write_data() 153 memcpy(d->begin + (offset - d->range.begin), dat in rob_write_data() [all...] |
| /third_party/icu/icu4c/source/common/ |
| H A D | chariter.cpp | 24 : 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 D | uchriter.cpp | 83 && 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 D | chariter.cpp | 24 : 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 D | uchriter.cpp | 83 && 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 D | chariter.cpp | 24 : 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 D | uchriter.cpp | 83 && 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/tests/ |
| H A D | PolyUtilsTest.cpp | 24 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...] |
| /foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/ |
| H A D | wifi_p2p_dns_txt_record.cpp | 47 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/nghttp2/src/ |
| H A D | base64_test.cc | 41 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 D | StringCharacterIterator.java | 36 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 D | StringCharacterIterator.java | 38 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 D | HandleAllocator.cpp | 52 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...] |
| /third_party/elfutils/libdw/ |
| H A D | dwarf_ranges.c | 37 /* Read up begin/end pair and increment read pointer. 62 uint64_t begin = 0, end = 0, base = *basep, addr_idx; in __libdw_read_begin_end_pair_inc() local 83 if (__libdw_addrx (cu, addr_idx, &begin) != 0) in __libdw_read_begin_end_pair_inc() 91 *beginp = begin; in __libdw_read_begin_end_pair_inc() 100 if (__libdw_addrx (cu, addr_idx, &begin) != 0) in __libdw_read_begin_end_pair_inc() 106 *beginp = begin; in __libdw_read_begin_end_pair_inc() 107 *endp = begin + end; in __libdw_read_begin_end_pair_inc() 119 Dwarf_Addr begin; in __libdw_read_begin_end_pair_inc() local 131 begin); in __libdw_read_begin_end_pair_inc() 136 /* Unrelocated escape for begin mean in __libdw_read_begin_end_pair_inc() 164 uint64_t begin = 0, end = 0, base = *basep, addr_idx; __libdw_read_begin_end_pair_inc() local 271 uint64_t begin = 0, end = 0, base = *basep, addr_idx; __libdw_read_begin_end_pair_inc() local 539 Dwarf_Addr begin; dwarf_ranges() local [all...] |
| /foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/ |
| H A D | device_convertor.cpp | 43 dbKey.insert(dbKey.end(), uuid.begin(), uuid.end()); in ToLocal() 44 dbKey.insert(dbKey.end(), original.begin(), original.end()); in ToLocal() 75 deviceId = DevManager::GetInstance().ToNetworkId({ key.begin(), key.begin() + length }); in ToKey() 79 key.erase(key.begin(), key.begin() + length); in ToKey() 118 size_t begin = 0; in ConvertNetwork() local 122 std::string deviceLen(in.Data().begin() + begin, in.Data().begin() in ConvertNetwork() [all...] |