Lines Matching refs:cur
119 struct mbchar cur; /* the current character:
120 const char *cur.ptr pointer to current character
122 size_t cur.bytes number of bytes of current character
123 bool cur.wc_valid true if wc is a valid wide character
124 wchar_t cur.wc if wc_valid: the current character
136 if (is_basic (*iter->cur.ptr))
141 iter->cur.bytes = 1;
142 iter->cur.wc = *iter->cur.ptr;
143 iter->cur.wc_valid = true;
150 iter->cur.bytes = mbrtowc (&iter->cur.wc, iter->cur.ptr,
151 strnlen1 (iter->cur.ptr, MB_CUR_MAX),
153 if (iter->cur.bytes == (size_t) -1)
156 iter->cur.bytes = 1;
157 iter->cur.wc_valid = false;
161 else if (iter->cur.bytes == (size_t) -2)
164 iter->cur.bytes = strlen (iter->cur.ptr);
165 iter->cur.wc_valid = false;
171 if (iter->cur.bytes == 0)
174 iter->cur.bytes = 1;
175 assert (*iter->cur.ptr == '\0');
176 assert (iter->cur.wc == 0);
178 iter->cur.wc_valid = true;
192 iter->cur.ptr += ptrdiff;
203 mb_copy (&new_iter->cur, &old_iter->cur);
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