Lines Matching refs:cur
119 struct mbchar cur; /* the current character: member
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()
150 iter->cur.bytes = mbrtowc (&iter->cur.wc, iter->cur.ptr, in mbuiter_multi_next()
151 strnlen1 (iter->cur.ptr, MB_CUR_MAX), in mbuiter_multi_next()
153 if (iter->cur.bytes == (size_t) -1) in mbuiter_multi_next()
156 iter->cur.bytes = 1; in mbuiter_multi_next()
157 iter->cur.wc_valid = false; in mbuiter_multi_next()
161 else if (iter->cur.bytes == (size_t) -2) in mbuiter_multi_next()
164 iter->cur.bytes = strlen (iter->cur.ptr); in mbuiter_multi_next()
165 iter->cur.wc_valid = false; in mbuiter_multi_next()
171 if (iter->cur.bytes == 0) in mbuiter_multi_next()
174 iter->cur.bytes = 1; in mbuiter_multi_next()
175 assert (*iter->cur.ptr == '\0'); in mbuiter_multi_next()
176 assert (iter->cur.wc == 0); in mbuiter_multi_next()
178 iter->cur.wc_valid = true; in mbuiter_multi_next()
192 iter->cur.ptr += ptrdiff; in mbuiter_multi_reloc()
203 mb_copy (&new_iter->cur, &old_iter->cur); in mbuiter_multi_copy()
209 ((iter).cur.ptr = (startptr), \
213 (mbuiter_multi_next (&(iter)), !mb_isnul ((iter).cur))
215 ((iter).cur.ptr += (iter).cur.bytes, (iter).next_done = false)
218 #define mbui_cur(iter) (iter).cur
219 #define mbui_cur_ptr(iter) (iter).cur.ptr