Home
last modified time | relevance | path

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

12345678910>>...167

/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/libchrome/base/i18n/
Dbreak_iterator_unittest.cc22 BreakIterator iter(empty, BreakIterator::BREAK_WORD); in TEST() local
23 ASSERT_TRUE(iter.Init()); in TEST()
24 EXPECT_FALSE(iter.Advance()); in TEST()
25 EXPECT_FALSE(iter.IsWord()); in TEST()
26 EXPECT_FALSE(iter.Advance()); // Test unexpected advance after end. in TEST()
27 EXPECT_FALSE(iter.IsWord()); in TEST()
33 BreakIterator iter(str, BreakIterator::BREAK_WORD); in TEST() local
34 ASSERT_TRUE(iter.Init()); in TEST()
35 EXPECT_TRUE(iter.Advance()); in TEST()
36 EXPECT_FALSE(iter.IsWord()); in TEST()
[all …]
Dchar_iterator_unittest.cc22 UTF8CharIterator iter(&str); in TEST() local
23 ASSERT_FALSE(iter.end()); in TEST()
24 ASSERT_EQ(0, iter.array_pos()); in TEST()
25 ASSERT_EQ(0, iter.char_pos()); in TEST()
26 ASSERT_EQ('s', iter.get()); in TEST()
27 ASSERT_TRUE(iter.Advance()); in TEST()
29 ASSERT_FALSE(iter.end()); in TEST()
30 ASSERT_EQ(1, iter.array_pos()); in TEST()
31 ASSERT_EQ(1, iter.char_pos()); in TEST()
32 ASSERT_EQ(251, iter.get()); in TEST()
[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/rust/crates/itertools/tests/
Dtuples.rs6 let mut iter = v.iter().cloned().tuples(); in tuples() localVariable
7 assert_eq!(Some((1,)), iter.next()); in tuples()
8 assert_eq!(Some((2,)), iter.next()); in tuples()
9 assert_eq!(Some((3,)), iter.next()); in tuples()
10 assert_eq!(Some((4,)), iter.next()); in tuples()
11 assert_eq!(Some((5,)), iter.next()); in tuples()
12 assert_eq!(None, iter.next()); in tuples()
13 assert_eq!(None, iter.into_buffer().next()); in tuples()
15 let mut iter = v.iter().cloned().tuples(); in tuples() localVariable
16 assert_eq!(Some((1, 2)), iter.next()); in tuples()
[all …]
/external/skia/src/utils/
DSkNWayCanvas.cpp60 Iter iter(fList); in willSave() local
61 while (iter.next()) { in willSave()
62 iter->save(); in willSave()
69 Iter iter(fList); in getSaveLayerStrategy() local
70 while (iter.next()) { in getSaveLayerStrategy()
71 iter->saveLayer(rec); in getSaveLayerStrategy()
80 Iter iter(fList); in onDoSaveBehind() local
81 while (iter.next()) { in onDoSaveBehind()
82 SkCanvasPriv::SaveBehind(iter.get(), bounds); in onDoSaveBehind()
89 Iter iter(fList); in willRestore() local
[all …]
/external/pdfium/xfa/fxfa/parser/
Dcxfa_nodeiteratortemplate_unittest.cpp97 Iterator iter(nullptr); in TEST_F() local
98 EXPECT_EQ(nullptr, iter.GetRoot()); in TEST_F()
99 EXPECT_EQ(nullptr, iter.GetCurrent()); in TEST_F()
100 EXPECT_EQ(nullptr, iter.MoveToNext()); in TEST_F()
101 EXPECT_EQ(nullptr, iter.MoveToPrev()); in TEST_F()
102 EXPECT_EQ(nullptr, iter.SkipChildrenAndMoveToNext()); in TEST_F()
106 Iterator iter(root()); in TEST_F() local
107 EXPECT_EQ(root(), iter.GetRoot()); in TEST_F()
108 EXPECT_EQ(root(), iter.GetCurrent()); in TEST_F()
112 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/llvm-project/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.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/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 …]
/external/llvm-project/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.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 …]
/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_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/kmod/libkmod/
Dlibkmod-builtin.c62 struct kmod_builtin_iter *iter = NULL; in kmod_builtin_iter_new() local
86 iter = malloc(sizeof(*iter)); in kmod_builtin_iter_new()
87 if (!iter) { in kmod_builtin_iter_new()
92 iter->ctx = ctx; in kmod_builtin_iter_new()
93 iter->file = file; in kmod_builtin_iter_new()
94 iter->size = sb.st_size; in kmod_builtin_iter_new()
95 iter->nstrings = 0; in kmod_builtin_iter_new()
96 iter->pos = 0; in kmod_builtin_iter_new()
97 iter->next = 0; in kmod_builtin_iter_new()
98 iter->bufsz = 0; in kmod_builtin_iter_new()
[all …]
/external/smali/dexlib2/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/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/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/skia/src/sksl/
DSkSLASTNode.cpp36 auto iter = this->begin(); in description() local
37 String result = (iter++)->description(); in description()
40 while (iter != this->end()) { in description()
42 result += (iter++)->description(); in description()
95 auto iter = this->begin(); in description() local
96 result += (iter++)->description() + " " + fd.fName + "("; in description()
100 result += (iter++)->description(); in description()
104 if (iter != this->end()) { in description()
105 result += " " + (iter++)->description(); in description()
106 SkASSERT(iter == this->end()); in description()
[all …]
/external/mesa3d/src/intel/common/
Dgen_decoder.c883 iter_more_fields(const struct gen_field_iterator *iter) in iter_more_fields() argument
885 return iter->field != NULL && iter->field->next != NULL; in iter_more_fields()
889 iter_array_offset_bits(const struct gen_field_iterator *iter) in iter_array_offset_bits() argument
891 if (iter->level == 0) in iter_array_offset_bits()
895 const struct gen_group *group = iter->groups[1]; in iter_array_offset_bits()
896 for (int level = 1; level <= iter->level; level++, group = iter->groups[level]) { in iter_array_offset_bits()
897 uint32_t array_idx = iter->array_iter[level]; in iter_array_offset_bits()
909 iter_push_array(struct gen_field_iterator *iter) in iter_push_array() argument
911 assert(iter->level >= 0); in iter_push_array()
913 iter->group = iter->field->array; in iter_push_array()
[all …]
/external/libcxx/test/std/localization/locale.categories/category.monetary/locale.money.put/locale.money.put.members/
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 …]
/external/llvm-project/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 …]

12345678910>>...167