Lines Matching refs:iter
69 struct json_object_iterator iter; in json_object_iter_begin() local
79 iter.opaque_ = pTable->head; in json_object_iter_begin()
80 return iter; in json_object_iter_begin()
89 struct json_object_iterator iter; in json_object_iter_end() local
94 iter.opaque_ = kObjectEndIterValue; in json_object_iter_end()
96 return iter; in json_object_iter_end()
103 json_object_iter_next(struct json_object_iterator* iter) in json_object_iter_next() argument
105 JASSERT(NULL != iter); in json_object_iter_next()
106 JASSERT(kObjectEndIterValue != iter->opaque_); in json_object_iter_next()
108 iter->opaque_ = ((struct lh_entry *)iter->opaque_)->next; in json_object_iter_next()
116 json_object_iter_peek_name(const struct json_object_iterator* iter) in json_object_iter_peek_name() argument
118 JASSERT(NULL != iter); in json_object_iter_peek_name()
119 JASSERT(kObjectEndIterValue != iter->opaque_); in json_object_iter_peek_name()
121 return (const char*)(((struct lh_entry *)iter->opaque_)->k); in json_object_iter_peek_name()
129 json_object_iter_peek_value(const struct json_object_iterator* iter) in json_object_iter_peek_value() argument
131 JASSERT(NULL != iter); in json_object_iter_peek_value()
132 JASSERT(kObjectEndIterValue != iter->opaque_); in json_object_iter_peek_value()
134 return (struct json_object*)(((struct lh_entry *)iter->opaque_)->v); in json_object_iter_peek_value()
158 struct json_object_iterator iter; in json_object_iter_init_default() local
165 iter.opaque_ = NULL; in json_object_iter_init_default()
167 return iter; in json_object_iter_init_default()