Home
last modified time | relevance | path

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

12345678910>>...99

/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/pdfium/xfa/fxfa/parser/
Dcxfa_nodeiteratortemplate_unittest.cpp98 Iterator iter(nullptr); in TEST_F() local
99 EXPECT_EQ(nullptr, iter.GetRoot()); in TEST_F()
100 EXPECT_EQ(nullptr, iter.GetCurrent()); in TEST_F()
101 EXPECT_EQ(nullptr, iter.MoveToNext()); in TEST_F()
102 EXPECT_EQ(nullptr, iter.MoveToPrev()); in TEST_F()
103 EXPECT_EQ(nullptr, iter.SkipChildrenAndMoveToNext()); in TEST_F()
107 Iterator iter(root()); in TEST_F() local
108 EXPECT_EQ(root(), iter.GetRoot()); in TEST_F()
109 EXPECT_EQ(root(), iter.GetCurrent()); in TEST_F()
113 Iterator iter(root()); in TEST_F() local
[all …]
/external/skqp/src/utils/
DSkNWayCanvas.cpp59 Iter iter(fList); in willSave() local
60 while (iter.next()) { in willSave()
61 iter->save(); in willSave()
68 Iter iter(fList); in getSaveLayerStrategy() local
69 while (iter.next()) { in getSaveLayerStrategy()
70 iter->saveLayer(rec); in getSaveLayerStrategy()
79 Iter iter(fList); in onDoSaveBehind() local
80 while (iter.next()) { in onDoSaveBehind()
81 SkCanvasPriv::SaveBehind(iter.get(), bounds); in onDoSaveBehind()
88 Iter iter(fList); in willRestore() local
[all …]
/external/skia/src/utils/
DSkNWayCanvas.cpp59 Iter iter(fList); in willSave() local
60 while (iter.next()) { in willSave()
61 iter->save(); in willSave()
68 Iter iter(fList); in getSaveLayerStrategy() local
69 while (iter.next()) { in getSaveLayerStrategy()
70 iter->saveLayer(rec); in getSaveLayerStrategy()
79 Iter iter(fList); in onDoSaveBehind() local
80 while (iter.next()) { in onDoSaveBehind()
81 SkCanvasPriv::SaveBehind(iter.get(), bounds); in onDoSaveBehind()
88 Iter iter(fList); in willRestore() 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/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/grpc-grpc/third_party/nanopb/
Dpb_common.c8 bool pb_field_iter_begin(pb_field_iter_t *iter, const pb_field_t *fields, void *dest_struct) in pb_field_iter_begin() argument
10 iter->start = fields; in pb_field_iter_begin()
11 iter->pos = fields; in pb_field_iter_begin()
12 iter->required_field_index = 0; in pb_field_iter_begin()
13 iter->dest_struct = dest_struct; in pb_field_iter_begin()
14 iter->pData = (char*)dest_struct + iter->pos->data_offset; in pb_field_iter_begin()
15 iter->pSize = (char*)iter->pData + iter->pos->size_offset; in pb_field_iter_begin()
17 return (iter->pos->tag != 0); in pb_field_iter_begin()
20 bool pb_field_iter_next(pb_field_iter_t *iter) in pb_field_iter_next() argument
22 const pb_field_t *prev_field = iter->pos; in pb_field_iter_next()
[all …]
Dpb_decode.c29 …kreturn decode_static_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iter_t *iter);
30 …eturn decode_callback_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iter_t *iter);
31 …ol checkreturn decode_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iter_t *iter);
32 static void iter_from_extension(pb_field_iter_t *iter, pb_extension_t *extension);
34 …ode_extension(pb_istream_t *stream, uint32_t tag, pb_wire_type_t wire_type, pb_field_iter_t *iter);
35 static bool checkreturn find_extension_field(pb_field_iter_t *iter);
36 static void pb_field_set_to_default(pb_field_iter_t *iter);
51 static bool checkreturn pb_release_union_field(pb_istream_t *stream, pb_field_iter_t *iter);
52 static void pb_release_single_field(const pb_field_iter_t *iter);
349 …ckreturn decode_static_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iter_t *iter) in decode_static_field() argument
[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/nanopb-c/
Dpb_common.c8 bool pb_field_iter_begin(pb_field_iter_t *iter, const pb_field_t *fields, void *dest_struct) in pb_field_iter_begin() argument
10 iter->start = fields; in pb_field_iter_begin()
11 iter->pos = fields; in pb_field_iter_begin()
12 iter->required_field_index = 0; in pb_field_iter_begin()
13 iter->dest_struct = dest_struct; in pb_field_iter_begin()
14 iter->pData = (char*)dest_struct + iter->pos->data_offset; in pb_field_iter_begin()
15 iter->pSize = (char*)iter->pData + iter->pos->size_offset; in pb_field_iter_begin()
17 return (iter->pos->tag != 0); in pb_field_iter_begin()
20 bool pb_field_iter_next(pb_field_iter_t *iter) in pb_field_iter_next() argument
22 const pb_field_t *prev_field = iter->pos; in pb_field_iter_next()
[all …]
Dpb_decode.c28 …kreturn decode_static_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iter_t *iter);
29 …eturn decode_callback_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iter_t *iter);
30 …ol checkreturn decode_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iter_t *iter);
31 static void iter_from_extension(pb_field_iter_t *iter, pb_extension_t *extension);
33 …ode_extension(pb_istream_t *stream, uint32_t tag, pb_wire_type_t wire_type, pb_field_iter_t *iter);
34 static bool checkreturn find_extension_field(pb_field_iter_t *iter);
35 static void pb_field_set_to_default(pb_field_iter_t *iter);
52 static bool checkreturn pb_release_union_field(pb_istream_t *stream, pb_field_iter_t *iter);
53 static void pb_release_single_field(const pb_field_iter_t *iter);
401 …ckreturn decode_static_field(pb_istream_t *stream, pb_wire_type_t wire_type, pb_field_iter_t *iter) in decode_static_field() argument
[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/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/libcxx/test/std/localization/locale.categories/category.monetary/locale.money.put/locale.money.put.members/
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_long_double_zh_CN.pass.cpp71 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
73 std::string ex(str, iter.base()); in main()
79 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
81 std::string ex(str, iter.base()); in main()
87 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
89 std::string ex(str, iter.base()); in main()
95 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
97 std::string ex(str, iter.base()); in main()
104 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
106 std::string ex(str, iter.base()); in main()
[all …]
Dput_long_double_ru_RU.pass.cpp77 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
79 std::string ex(str, iter.base()); in main()
85 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
87 std::string ex(str, iter.base()); in main()
93 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
95 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()
110 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
112 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 …]
Dput_long_double_fr_FR.pass.cpp100 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
102 std::string ex(str, iter.base()); in main()
108 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
110 std::string ex(str, iter.base()); in main()
116 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
118 std::string ex(str, iter.base()); in main()
124 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
126 std::string ex(str, iter.base()); in main()
133 output_iterator<char*> iter = f.put(output_iterator<char*>(str), in main() local
135 std::string ex(str, iter.base()); in main()
[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.c66 util_hash_table_item(struct util_hash_iter iter) in util_hash_table_item() argument
68 return (struct util_hash_table_item *)util_hash_iter_data(iter); in util_hash_table_item()
97 struct util_hash_iter iter; in util_hash_table_find_iter() local
100 iter = util_hash_find(ht->head, key_hash); in util_hash_table_find_iter()
101 while (!util_hash_iter_is_null(iter)) { in util_hash_table_find_iter()
102 item = (struct util_hash_table_item *)util_hash_iter_data(iter); in util_hash_table_find_iter()
105 iter = util_hash_iter_next(iter); in util_hash_table_find_iter()
108 return iter; in util_hash_table_find_iter()
115 struct util_hash_iter iter; in util_hash_table_find_item() local
118 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/libtextclassifier/utils/utf8/
Dunicodetext_test.cc102 UnicodeText::const_iterator iter = text_.begin(); in TEST_F() local
103 EXPECT_EQ(0x1C0, *iter); in TEST_F()
104 EXPECT_EQ(&iter, &++iter); // operator++ returns *this. in TEST_F()
105 EXPECT_EQ(0x4E8C, *iter++); in TEST_F()
106 EXPECT_EQ(0xD7DB, *iter); in TEST_F()
108 EXPECT_EQ(0xD7DB, *iter); in TEST_F()
109 EXPECT_EQ(0x34, *++iter); in TEST_F()
110 EXPECT_EQ(0x1D11E, *++iter); in TEST_F()
111 ASSERT_TRUE(iter != text_.end()); in TEST_F()
112 iter++; in TEST_F()
[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 …]

12345678910>>...99