Home
last modified time | relevance | path

Searched refs:iter (Results 1 – 25 of 1522) sorted by relevance

12345678910>>...61

/external/icu/icu4c/source/common/
Duiter.cpp92 stringIteratorGetIndex(UCharIterator *iter, UCharIteratorOrigin origin) { in stringIteratorGetIndex() argument
97 return iter->start; in stringIteratorGetIndex()
99 return iter->index; in stringIteratorGetIndex()
101 return iter->limit; in stringIteratorGetIndex()
103 return iter->length; in stringIteratorGetIndex()
112 stringIteratorMove(UCharIterator *iter, int32_t delta, UCharIteratorOrigin origin) { in stringIteratorMove() argument
120 pos=iter->start+delta; in stringIteratorMove()
123 pos=iter->index+delta; in stringIteratorMove()
126 pos=iter->limit+delta; in stringIteratorMove()
129 pos=iter->length+delta; in stringIteratorMove()
[all …]
/external/icu/icu4c/source/samples/uciter8/
Duit_len8.c116 lenient8IteratorGetIndex(UCharIterator *iter, UCharIteratorOrigin origin) { in lenient8IteratorGetIndex() argument
122 if(iter->index<0) { in lenient8IteratorGetIndex()
128 s=(const uint8_t *)iter->context; in lenient8IteratorGetIndex()
130 limit=iter->start; /* count up to the UTF-8 index */ in lenient8IteratorGetIndex()
140 iter->start=i; /* just in case setState() did not get us to a code point boundary */ in lenient8IteratorGetIndex()
141 if(i==iter->limit) { in lenient8IteratorGetIndex()
142 iter->length=index; /* in case it was <0 or wrong */ in lenient8IteratorGetIndex()
144 if(iter->reservedField!=0) { in lenient8IteratorGetIndex()
147 iter->index=index; in lenient8IteratorGetIndex()
149 return iter->index; in lenient8IteratorGetIndex()
[all …]
/external/syslinux/com32/chain/
Dpartiter.c76 static void pi_dtor_(struct part_iter *iter) in pi_dtor_() argument
79 free(iter->data); in pi_dtor_()
83 static int pi_ctor(struct part_iter *iter, in pi_ctor() argument
87 memcpy(&iter->di, di, sizeof *di); in pi_ctor()
88 iter->flags = flags; in pi_ctor()
89 iter->index0 = -1; in pi_ctor()
90 iter->length = di->lbacnt; in pi_ctor()
92 iter->type = typeraw; in pi_ctor()
97 static int pi_dos_ctor(struct part_iter *iter, in pi_dos_ctor() argument
102 if (pi_ctor(iter, di, flags)) in pi_dos_ctor()
[all …]
Dchain.c67 struct part_iter *iter = NULL; in find_by_sig() local
74 if (!(iter = pi_begin(&diskinfo, opt.piflags))) in find_by_sig()
77 if (iter->type == typedos && iter->dos.disk_sig == mbr_sig) in find_by_sig()
79 pi_del(&iter); in find_by_sig()
83 *_boot_part = iter; in find_by_sig()
94 struct part_iter *iter = NULL; in find_by_guid() local
101 if (!(iter = pi_begin(&diskinfo, opt.piflags))) in find_by_guid()
104 if (iter->type == typegpt) in find_by_guid()
106 if (!memcmp(&iter->gpt.part_guid, gpt_guid, sizeof *gpt_guid)) in find_by_guid()
108 } while (!pi_next(iter)); in find_by_guid()
[all …]
Dmangle.c124 int manglef_grub(const struct part_iter *iter, struct data_area *data) in manglef_grub() argument
206 stage2->install_partition.part1 = iter->index - 1; in manglef_grub()
276 static int mangle_bpb(const struct part_iter *iter, struct data_area *data, const char *tag) in mangle_bpb() argument
283 *(uint64_t *) ((char *)data->data + 0x40) = iter->abs_lba; in mangle_bpb()
286 if (iter->abs_lba < ~0u) in mangle_bpb()
287 *(uint32_t *) ((char *)data->data + 0x1c) = iter->abs_lba; in mangle_bpb()
293 if (iter->abs_lba < 0xFFFF) in mangle_bpb()
294 *(uint16_t *) ((char *)data->data + 0x1c) = iter->abs_lba; in mangle_bpb()
302 if (iter->di.cbios) in mangle_bpb()
303 *(uint32_t *)((char *)data->data + 0x18) = (iter->di.head << 16) | iter->di.spt; in mangle_bpb()
[all …]
/external/bison/lib/
Dmbuiter.h129 mbuiter_multi_next (struct mbuiter_multi *iter) in mbuiter_multi_next() argument
131 if (iter->next_done) in mbuiter_multi_next()
133 if (iter->in_shift) in mbuiter_multi_next()
136 if (is_basic (*iter->cur.ptr)) in mbuiter_multi_next()
141 iter->cur.bytes = 1; in mbuiter_multi_next()
142 iter->cur.wc = *iter->cur.ptr; in mbuiter_multi_next()
143 iter->cur.wc_valid = true; in mbuiter_multi_next()
147 assert (mbsinit (&iter->state)); in mbuiter_multi_next()
148 iter->in_shift = true; in mbuiter_multi_next()
150 iter->cur.bytes = mbrtowc (&iter->cur.wc, iter->cur.ptr, in mbuiter_multi_next()
[all …]
/external/skia/src/utils/
DSkNWayCanvas.cpp56 Iter iter(fList); in willSave() local
57 while (iter.next()) { in willSave()
58 iter->save(); in willSave()
65 Iter iter(fList); in getSaveLayerStrategy() local
66 while (iter.next()) { in getSaveLayerStrategy()
67 iter->saveLayer(rec); in getSaveLayerStrategy()
76 Iter iter(fList); in willRestore() local
77 while (iter.next()) { in willRestore()
78 iter->restore(); in willRestore()
84 Iter iter(fList); in didConcat() local
[all …]
/external/libcxx/test/std/localization/locale.categories/category.time/locale.time.put/locale.time.put.members/
Dput2.pass.cpp35 output_iterator<char*> iter; in main() local
48 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'A'); in main()
49 std::string ex(str, iter.base()); in main()
53 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'a'); in main()
54 std::string ex(str, iter.base()); in main()
58 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'B'); in main()
59 std::string ex(str, iter.base()); in main()
63 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'b'); in main()
64 std::string ex(str, iter.base()); in main()
68 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'C'); in main()
[all …]
/external/fio/lib/
Dprio_tree.c300 static struct prio_tree_node *prio_tree_left(struct prio_tree_iter *iter, in prio_tree_left() argument
303 if (prio_tree_left_empty(iter->cur)) in prio_tree_left()
306 get_index(iter->cur->left, r_index, h_index); in prio_tree_left()
308 if (iter->r_index <= *h_index) { in prio_tree_left()
309 iter->cur = iter->cur->left; in prio_tree_left()
310 iter->mask >>= 1; in prio_tree_left()
311 if (iter->mask) { in prio_tree_left()
312 if (iter->size_level) in prio_tree_left()
313 iter->size_level++; in prio_tree_left()
315 if (iter->size_level) { in prio_tree_left()
[all …]
/external/libcxx/test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/
Dput_double.pass.cpp51 output_iterator<char*> iter; in test1() local
72 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
73 std::string ex(str, iter.base()); in test1()
80 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
81 std::string ex(str, iter.base()); in test1()
88 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
89 std::string ex(str, iter.base()); in test1()
96 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
97 std::string ex(str, iter.base()); in test1()
106 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
[all …]
Dput_long_double.pass.cpp56 output_iterator<char*> iter; in test1() local
77 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
78 std::string ex(str, iter.base()); in test1()
85 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
86 std::string ex(str, iter.base()); in test1()
93 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
94 std::string ex(str, iter.base()); in test1()
101 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
102 std::string ex(str, iter.base()); in test1()
111 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
[all …]
/external/nanopb-c/
Dpb_decode.c39 static void pb_field_init(pb_field_iterator_t *iter, const pb_field_t *fields, void *dest_struct);
40 static bool pb_field_next(pb_field_iterator_t *iter);
41 static bool checkreturn pb_field_find(pb_field_iterator_t *iter, uint32_t tag);
42 …urn decode_static_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iterator_t *iter);
43 …n decode_callback_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iterator_t *iter);
44 …heckreturn decode_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iterator_t *iter);
46 …extension(pb_istream_t *stream, uint32_t tag, pb_wire_type_t wire_type, pb_field_iterator_t *iter);
47 static bool checkreturn find_extension_field(pb_field_iterator_t *iter);
341 static void pb_field_init(pb_field_iterator_t *iter, const pb_field_t *fields, void *dest_struct) in pb_field_init() argument
343 iter->start = iter->pos = fields; in pb_field_init()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/linear/
DOpenMapRealVector.java232 Iterator iter = copyThis ? v.entries.iterator() : entries.iterator(); in add() local
234 while (iter.hasNext()) { in add()
235 iter.advance(); in add()
236 int key = iter.key(); in add()
238 res.setEntry(key, randomAccess.get(key) + iter.value()); in add()
240 res.setEntry(key, iter.value()); in add()
253 Iterator iter = v.entries.iterator(); in append() local
254 while (iter.hasNext()) { in append()
255 iter.advance(); in append()
256 res.setEntry(iter.key() + virtualSize, iter.value()); in append()
[all …]
/external/smali/util/src/test/java/org/jf/util/
DAbstractForwardSequentialListTest.java77 private void testForwardIterationImpl(ListIterator<Integer> iter) { in testForwardIterationImpl() argument
78 Assert.assertFalse(iter.hasPrevious()); in testForwardIterationImpl()
81 Assert.assertEquals(i, iter.nextIndex()); in testForwardIterationImpl()
82 Assert.assertEquals(i-1, iter.previousIndex()); in testForwardIterationImpl()
84 Assert.assertTrue(iter.hasNext()); in testForwardIterationImpl()
86 Assert.assertEquals(i, iter.next().intValue()); in testForwardIterationImpl()
87 Assert.assertTrue(iter.hasPrevious()); in testForwardIterationImpl()
90 Assert.assertFalse(iter.hasNext()); in testForwardIterationImpl()
91 Assert.assertEquals(iter.nextIndex(), 100); in testForwardIterationImpl()
92 Assert.assertEquals(iter.previousIndex(), 99); in testForwardIterationImpl()
[all …]
/external/icu/icu4c/source/i18n/
Duitercollationiterator.cpp36 iter.move(&iter, newOffset, UITER_START); in resetToOffset()
41 return iter.getIndex(&iter, UITER_CURRENT); in getOffset()
46 c = iter.next(&iter); in handleNextCE32()
55 UChar32 trail = iter.next(&iter); in handleGetTrailSurrogate()
56 if(!U16_IS_TRAIL(trail) && trail >= 0) { iter.previous(&iter); } in handleGetTrailSurrogate()
62 return uiter_next32(&iter); in nextCodePoint()
67 return uiter_previous32(&iter); in previousCodePoint()
72 while(num > 0 && (uiter_next32(&iter)) >= 0) { in forwardNumCodePoints()
79 while(num > 0 && (uiter_previous32(&iter)) >= 0) { in backwardNumCodePoints()
98 return iter.getIndex(&iter, UITER_CURRENT); in getOffset()
[all …]
/external/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_file.cc106 for (vector<FileGenerator *>::const_iterator iter = in GenerateHeader() local
108 iter != dependency_generators.end(); ++iter) { in GenerateHeader()
109 if ((*iter)->IsPublicDependency()) { in GenerateHeader()
111 "header", (*iter)->Path()); in GenerateHeader()
125 for (vector<MessageGenerator *>::iterator iter = message_generators_.begin(); in GenerateHeader() local
126 iter != message_generators_.end(); ++iter) { in GenerateHeader()
127 (*iter)->DetermineForwardDeclarations(&fwd_decls); in GenerateHeader()
142 for (vector<EnumGenerator *>::iterator iter = enum_generators_.begin(); in GenerateHeader() local
143 iter != enum_generators_.end(); ++iter) { in GenerateHeader()
144 (*iter)->GenerateHeader(printer); in GenerateHeader()
[all …]
/external/libdrm/amdgpu/
Dutil_hash_table.c70 util_hash_table_item(struct util_hash_iter iter) in util_hash_table_item() argument
72 return (struct util_hash_table_item *)util_hash_iter_data(iter); in util_hash_table_item()
101 struct util_hash_iter iter; in util_hash_table_find_iter() local
104 iter = util_hash_find(ht->head, key_hash); in util_hash_table_find_iter()
105 while (!util_hash_iter_is_null(iter)) { in util_hash_table_find_iter()
106 item = (struct util_hash_table_item *)util_hash_iter_data(iter); in util_hash_table_find_iter()
109 iter = util_hash_iter_next(iter); in util_hash_table_find_iter()
112 return iter; in util_hash_table_find_iter()
119 struct util_hash_iter iter; in util_hash_table_find_item() local
122 iter = util_hash_find(ht->head, key_hash); in util_hash_table_find_item()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_hash_table.c72 util_hash_table_item(struct cso_hash_iter iter) in util_hash_table_item() argument
74 return (struct util_hash_table_item *)cso_hash_iter_data(iter); in util_hash_table_item()
106 struct cso_hash_iter iter; in util_hash_table_find_iter() local
109 iter = cso_hash_find(ht->cso, key_hash); in util_hash_table_find_iter()
110 while (!cso_hash_iter_is_null(iter)) { in util_hash_table_find_iter()
111 item = (struct util_hash_table_item *)cso_hash_iter_data(iter); in util_hash_table_find_iter()
114 iter = cso_hash_iter_next(iter); in util_hash_table_find_iter()
117 return iter; in util_hash_table_find_iter()
126 struct cso_hash_iter iter; in util_hash_table_find_item() local
129 iter = cso_hash_find(ht->cso, key_hash); in util_hash_table_find_item()
[all …]
/external/libcxx/test/std/localization/locale.categories/category.monetary/locale.money.put/locale.money.put.members/
Dput_long_double_ru_RU.pass.cpp73 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
75 std::string ex(str, iter.base()); in main()
81 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
83 std::string ex(str, iter.base()); in main()
89 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
91 std::string ex(str, iter.base()); in main()
97 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
99 std::string ex(str, iter.base()); in main()
106 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
108 std::string ex(str, iter.base()); in main()
[all …]
Dput_long_double_fr_FR.pass.cpp67 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
69 std::string ex(str, iter.base()); in main()
75 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
77 std::string ex(str, iter.base()); in main()
83 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
85 std::string ex(str, iter.base()); in main()
91 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
93 std::string ex(str, iter.base()); in main()
100 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
102 std::string ex(str, iter.base()); in main()
[all …]
Dput_long_double_zh_CN.pass.cpp68 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
70 std::string ex(str, iter.base()); in main()
76 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
78 std::string ex(str, iter.base()); in main()
84 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
86 std::string ex(str, iter.base()); in main()
92 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
94 std::string ex(str, iter.base()); in main()
101 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
103 std::string ex(str, iter.base()); in main()
[all …]
Dput_long_double_en_US.pass.cpp65 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
67 std::string ex(str, iter.base()); in main()
73 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
75 std::string ex(str, iter.base()); in main()
81 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
83 std::string ex(str, iter.base()); in main()
89 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
91 std::string ex(str, iter.base()); in main()
98 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
100 std::string ex(str, iter.base()); in main()
[all …]
Dput_string_en_US.pass.cpp65 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
67 std::string ex(str, iter.base()); in main()
73 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
75 std::string ex(str, iter.base()); in main()
81 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
83 std::string ex(str, iter.base()); in main()
89 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
91 std::string ex(str, iter.base()); in main()
98 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
100 std::string ex(str, iter.base()); in main()
[all …]
/external/pdfium/fpdfsdk/
Dfsdk_baseform_embeddertest.cpp47 CBA_AnnotIterator iter(pFormFillEnv->GetPageView(0), in TEST_F() local
49 CPDFSDK_Annot* pAnnot = iter.GetFirstAnnot(); in TEST_F()
51 pAnnot = iter.GetNextAnnot(pAnnot); in TEST_F()
53 pAnnot = iter.GetNextAnnot(pAnnot); in TEST_F()
55 pAnnot = iter.GetNextAnnot(pAnnot); in TEST_F()
57 pAnnot = iter.GetNextAnnot(pAnnot); in TEST_F()
58 EXPECT_EQ(iter.GetFirstAnnot(), pAnnot); in TEST_F()
60 pAnnot = iter.GetLastAnnot(); in TEST_F()
62 pAnnot = iter.GetPrevAnnot(pAnnot); in TEST_F()
64 pAnnot = iter.GetPrevAnnot(pAnnot); in TEST_F()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DAbstractIteratorTest.java40 Iterator<Integer> iter = new AbstractIterator<Integer>() { in testDefaultBehaviorOfNextAndHasNext() local
57 assertTrue(iter.hasNext()); in testDefaultBehaviorOfNextAndHasNext()
58 assertEquals(0, (int) iter.next()); in testDefaultBehaviorOfNextAndHasNext()
61 assertTrue(iter.hasNext()); in testDefaultBehaviorOfNextAndHasNext()
62 assertTrue(iter.hasNext()); in testDefaultBehaviorOfNextAndHasNext()
63 assertTrue(iter.hasNext()); in testDefaultBehaviorOfNextAndHasNext()
64 assertEquals(1, (int) iter.next()); in testDefaultBehaviorOfNextAndHasNext()
66 assertFalse(iter.hasNext()); in testDefaultBehaviorOfNextAndHasNext()
69 assertFalse(iter.hasNext()); in testDefaultBehaviorOfNextAndHasNext()
72 iter.next(); in testDefaultBehaviorOfNextAndHasNext()
[all …]

12345678910>>...61