/external/icu/icu4c/source/common/ |
D | uiter.cpp | 90 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/ |
D | uit_len8.c | 110 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/ |
D | generators-iteration.js | 38 function assertIteratorIsClosed(iter) { argument 39 assertIteratorResult(undefined, true, iter.next()); 40 assertDoesNotThrow(function() { iter.next(); }); 43 function assertThrownIteratorIsClosed(iter) { argument 44 assertIteratorIsClosed(iter); 49 var iter = g(); 50 var result = iter.next(); 63 var iter = thunk(); 68 assertIteratorResult(v1, v2, iter.next()); 70 assertIteratorIsClosed(iter); [all …]
|
D | generators-states.js | 14 function assertIteratorIsClosed(iter) { argument 15 assertIteratorResult(undefined, true, iter.next()); 17 assertDoesNotThrow(function() { iter.next(); }); 18 assertThrows(function() { iter.throw(new Bar); }, Bar); 21 var iter; variable 22 function* nextGenerator() { yield iter.next(); } 23 function* throwGenerator() { yield iter.throw(new Bar); } 26 iter = nextGenerator(); 27 assertThrows(function() { iter.throw(new Foo) }, Foo) 28 assertThrows(function() { iter.throw(new Foo) }, Foo) [all …]
|
D | collection-iterator.js | 10 var iter = s.values(); 11 assertEquals('Set Iterator', %_ClassOf(iter)); 13 var SetIteratorPrototype = iter.__proto__; 24 Object.prototype.toString.call(iter)); 39 var iter = s.values(); 41 assertEquals({value: 1, done: false}, iter.next()); 42 assertEquals({value: 2, done: false}, iter.next()); 43 assertEquals({value: 3, done: false}, iter.next()); 44 assertEquals({value: undefined, done: true}, iter.next()); 45 assertEquals({value: undefined, done: true}, iter.next()); [all …]
|
/external/bison/lib/ |
D | mbuiter.h | 129 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/ |
D | SkNWayCanvas.cpp | 61 Iter iter(fList); in willSave() local 62 while (iter.next()) { in willSave() 63 iter->save(); in willSave() 70 Iter iter(fList); in getSaveLayerStrategy() local 71 while (iter.next()) { in getSaveLayerStrategy() 72 iter->saveLayer(rec); in getSaveLayerStrategy() 81 Iter iter(fList); in willRestore() local 82 while (iter.next()) { in willRestore() 83 iter->restore(); in willRestore() 89 Iter iter(fList); in didConcat() local [all …]
|
/external/libcxx/test/std/localization/locale.categories/category.time/locale.time.put/locale.time.put.members/ |
D | put2.pass.cpp | 37 output_iterator<char*> iter; in main() local 50 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'A'); in main() 51 std::string ex(str, iter.base()); in main() 55 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'a'); in main() 56 std::string ex(str, iter.base()); in main() 60 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'B'); in main() 61 std::string ex(str, iter.base()); in main() 65 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'b'); in main() 66 std::string ex(str, iter.base()); in main() 70 iter = f.put(output_iterator<char*>(str), ios, '*', &t, 'C'); in main() [all …]
|
/external/fio/lib/ |
D | prio_tree.c | 297 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/ |
D | put_double.pass.cpp | 48 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 …]
|
D | put_long_double.pass.cpp | 53 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/ |
D | pb_decode.c | 39 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/ |
D | OpenMapRealVector.java | 232 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/icu/icu4c/source/i18n/ |
D | uitercollationiterator.cpp | 34 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/smali/util/src/test/java/org/jf/util/ |
D | AbstractForwardSequentialListTest.java | 77 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/dbus/dbus/ |
D | dbus-message-factory.c | 46 iter_recurse (DBusMessageDataIter *iter) in iter_recurse() argument 48 iter->depth += 1; in iter_recurse() 49 _dbus_assert (iter->depth < _DBUS_MESSAGE_DATA_MAX_NESTING); in iter_recurse() 50 _dbus_assert (iter->sequence_nos[iter->depth] >= 0); in iter_recurse() 54 iter_get_sequence (DBusMessageDataIter *iter) in iter_get_sequence() argument 56 _dbus_assert (iter->sequence_nos[iter->depth] >= 0); in iter_get_sequence() 57 return iter->sequence_nos[iter->depth]; in iter_get_sequence() 61 iter_set_sequence (DBusMessageDataIter *iter, in iter_set_sequence() argument 65 iter->sequence_nos[iter->depth] = sequence; in iter_set_sequence() 69 iter_unrecurse (DBusMessageDataIter *iter) in iter_unrecurse() argument [all …]
|
/external/libcxx/test/std/localization/locale.categories/category.monetary/locale.money.put/locale.money.put.members/ |
D | put_long_double_fr_FR.pass.cpp | 67 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 …]
|
D | put_long_double_en_US.pass.cpp | 65 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 …]
|
D | put_long_double_zh_CN.pass.cpp | 68 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 …]
|
D | put_long_double_ru_RU.pass.cpp | 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() 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 …]
|
D | put_string_en_US.pass.cpp | 65 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/libdrm/amdgpu/ |
D | util_hash_table.c | 70 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/ |
D | u_hash_table.c | 72 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/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | AbstractIteratorTest.java | 40 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/ |
D | dev.c | 115 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 …]
|