Home
last modified time | relevance | path

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

12345678910>>...46

/external/icu/icu4c/source/common/
Duiter.cpp90 stringIteratorGetIndex(UCharIterator *iter, UCharIteratorOrigin origin) { in stringIteratorGetIndex() argument
95 return iter->start; in stringIteratorGetIndex()
97 return iter->index; in stringIteratorGetIndex()
99 return iter->limit; in stringIteratorGetIndex()
101 return iter->length; in stringIteratorGetIndex()
110 stringIteratorMove(UCharIterator *iter, int32_t delta, UCharIteratorOrigin origin) { in stringIteratorMove() argument
118 pos=iter->start+delta; in stringIteratorMove()
121 pos=iter->index+delta; in stringIteratorMove()
124 pos=iter->limit+delta; in stringIteratorMove()
127 pos=iter->length+delta; in stringIteratorMove()
[all …]
/external/icu/icu4c/source/samples/uciter8/
Duit_len8.c110 lenient8IteratorGetIndex(UCharIterator *iter, UCharIteratorOrigin origin) { in lenient8IteratorGetIndex() argument
116 if(iter->index<0) { in lenient8IteratorGetIndex()
122 s=(const uint8_t *)iter->context; in lenient8IteratorGetIndex()
124 limit=iter->start; /* count up to the UTF-8 index */ in lenient8IteratorGetIndex()
134 iter->start=i; /* just in case setState() did not get us to a code point boundary */ in lenient8IteratorGetIndex()
135 if(i==iter->limit) { in lenient8IteratorGetIndex()
136 iter->length=index; /* in case it was <0 or wrong */ in lenient8IteratorGetIndex()
138 if(iter->reservedField!=0) { in lenient8IteratorGetIndex()
141 iter->index=index; in lenient8IteratorGetIndex()
143 return iter->index; in lenient8IteratorGetIndex()
[all …]
/external/v8/test/mjsunit/es6/
Dgenerators-iteration.js38 function assertIteratorIsClosed(iter) { argument
39 assertIteratorResult(undefined, true, iter.next());
40 assertDoesNotThrow(function() { iter.next(); });
43 function assertThrownIteratorIsClosed(iter) { argument
52 var iter = g();
53 var result = iter.next();
66 var iter = thunk();
71 assertIteratorResult(v1, v2, iter.next());
73 assertIteratorIsClosed(iter);
76 var iter = thunk();
[all …]
Dcollection-iterator.js10 var iter = s.values();
11 assertEquals('Set Iterator', %_ClassOf(iter));
13 var SetIteratorPrototype = iter.__proto__;
30 var iter = s.values();
32 assertEquals({value: 1, done: false}, iter.next());
33 assertEquals({value: 2, done: false}, iter.next());
34 assertEquals({value: 3, done: false}, iter.next());
35 assertEquals({value: undefined, done: true}, iter.next());
36 assertEquals({value: undefined, done: true}, iter.next());
50 var iter = s.entries();
[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.cpp61 Iter iter(fList); in willSave() local
62 while (iter.next()) { in willSave()
63 iter->save(); in willSave()
71 Iter iter(fList); in willSaveLayer() local
72 while (iter.next()) { in willSaveLayer()
73 iter->saveLayer(bounds, paint, flags); in willSaveLayer()
82 Iter iter(fList); in willRestore() local
83 while (iter.next()) { in willRestore()
84 iter->restore(); in willRestore()
90 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.cpp38 output_iterator<char*> iter; in main() local
51 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'A'); in main()
52 std::string ex(str, iter.base()); in main()
56 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'a'); in main()
57 std::string ex(str, iter.base()); in main()
61 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'B'); in main()
62 std::string ex(str, iter.base()); in main()
66 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'b'); in main()
67 std::string ex(str, iter.base()); in main()
71 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'C'); in main()
[all …]
/external/fio/lib/
Dprio_tree.c297 static struct prio_tree_node *prio_tree_left(struct prio_tree_iter *iter, in prio_tree_left() argument
300 if (prio_tree_left_empty(iter->cur)) in prio_tree_left()
303 get_index(iter->cur->left, r_index, h_index); in prio_tree_left()
305 if (iter->r_index <= *h_index) { in prio_tree_left()
306 iter->cur = iter->cur->left; in prio_tree_left()
307 iter->mask >>= 1; in prio_tree_left()
308 if (iter->mask) { in prio_tree_left()
309 if (iter->size_level) in prio_tree_left()
310 iter->size_level++; in prio_tree_left()
312 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.cpp48 output_iterator<char*> iter; in test1() local
69 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
70 std::string ex(str, iter.base()); in test1()
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()
103 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
[all …]
Dput_long_double.pass.cpp53 output_iterator<char*> iter; in test1() local
74 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
75 std::string ex(str, iter.base()); in test1()
82 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
83 std::string ex(str, iter.base()); in test1()
90 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
91 std::string ex(str, iter.base()); in test1()
98 iter = f.put(output_iterator<char*>(str), ios, '*', v); in test1()
99 std::string ex(str, iter.base()); in test1()
108 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 …]
DSparseFieldVector.java142 OpenIntToFieldHashMap<T>.Iterator iter = v.getEntries().iterator(); in add()
143 while (iter.hasNext()) { in add()
144 iter.advance(); in add()
145 int key = iter.key(); in add()
146 T value = iter.value(); in add()
175 OpenIntToFieldHashMap<T>.Iterator iter = v.entries.iterator(); in append()
176 while (iter.hasNext()) { in append()
177 iter.advance(); in append()
178 res.setEntry(iter.key() + virtualSize, iter.value()); in append()
217 OpenIntToFieldHashMap<T>.Iterator iter = entries.iterator(); in dotProduct()
[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.cpp34 iter.move(&iter, newOffset, UITER_START); in resetToOffset()
39 return iter.getIndex(&iter, UITER_CURRENT); in getOffset()
44 c = iter.next(&iter); in handleNextCE32()
53 UChar32 trail = iter.next(&iter); in handleGetTrailSurrogate()
54 if(!U16_IS_TRAIL(trail) && trail >= 0) { iter.previous(&iter); } in handleGetTrailSurrogate()
60 return uiter_next32(&iter); in nextCodePoint()
65 return uiter_previous32(&iter); in previousCodePoint()
70 while(num > 0 && (uiter_next32(&iter)) >= 0) { in forwardNumCodePoints()
77 while(num > 0 && (uiter_previous32(&iter)) >= 0) { in backwardNumCodePoints()
96 return iter.getIndex(&iter, UITER_CURRENT); in getOffset()
[all …]
/external/drm_hwcomposer/
Ddrmcomposition.cpp36 for (DrmResources::PlaneIter iter = drm_->begin_planes(); in DrmComposition() local
37 iter != drm_->end_planes(); ++iter) { in DrmComposition()
38 if ((*iter)->type() == DRM_PLANE_TYPE_PRIMARY) in DrmComposition()
39 primary_planes_.push_back(*iter); in DrmComposition()
40 else if (kUseOverlayPlanes && (*iter)->type() == DRM_PLANE_TYPE_OVERLAY) in DrmComposition()
41 overlay_planes_.push_back(*iter); in DrmComposition()
49 for (DrmResources::ConnectorIter iter = drm_->begin_connectors(); in Init() local
50 iter != drm_->end_connectors(); ++iter) { in Init()
51 int display = (*iter)->display(); in Init()
57 int ret = composition_map_[(*iter)->display()]->Init(drm_, importer_); in Init()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/dbus/
Ddbus_new_handlers.h23 dbus_bool_t wpas_dbus_simple_property_getter(DBusMessageIter *iter,
28 dbus_bool_t wpas_dbus_simple_property_setter(DBusMessageIter *iter,
32 dbus_bool_t wpas_dbus_simple_array_property_getter(DBusMessageIter *iter,
38 dbus_bool_t wpas_dbus_simple_array_array_property_getter(DBusMessageIter *iter,
53 dbus_bool_t wpas_dbus_getter_debug_level(DBusMessageIter *iter,
57 dbus_bool_t wpas_dbus_getter_debug_timestamp(DBusMessageIter *iter,
61 dbus_bool_t wpas_dbus_getter_debug_show_keys(DBusMessageIter *iter,
65 dbus_bool_t wpas_dbus_setter_debug_level(DBusMessageIter *iter,
68 dbus_bool_t wpas_dbus_setter_debug_timestamp(DBusMessageIter *iter,
72 dbus_bool_t wpas_dbus_setter_debug_show_keys(DBusMessageIter *iter,
[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/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 …]
/external/e2fsprogs/lib/blkid/
Ddev.c115 blkid_dev_iterate iter; in blkid_dev_iterate_begin() local
117 iter = malloc(sizeof(struct blkid_struct_dev_iterate)); in blkid_dev_iterate_begin()
118 if (iter) { in blkid_dev_iterate_begin()
119 iter->magic = DEV_ITERATE_MAGIC; in blkid_dev_iterate_begin()
120 iter->cache = cache; in blkid_dev_iterate_begin()
121 iter->p = cache->bic_devs.next; in blkid_dev_iterate_begin()
122 iter->search_type = 0; in blkid_dev_iterate_begin()
123 iter->search_value = 0; in blkid_dev_iterate_begin()
125 return (iter); in blkid_dev_iterate_begin()
128 extern int blkid_dev_set_search(blkid_dev_iterate iter, in blkid_dev_set_search() argument
[all …]

12345678910>>...46