Lines Matching refs:cp
65 const CHAR_T *cp = format; /* pointer into format */ in PRINTF_PARSE() local
115 while (*cp != '\0') in PRINTF_PARSE()
117 CHAR_T c = *cp++; in PRINTF_PARSE()
124 dp->dir_start = cp - 1; in PRINTF_PARSE()
135 if (*cp >= '0' && *cp <= '9') in PRINTF_PARSE()
139 for (np = cp; *np >= '0' && *np <= '9'; np++) in PRINTF_PARSE()
145 for (np = cp; *np >= '0' && *np <= '9'; np++) in PRINTF_PARSE()
154 cp = np + 1; in PRINTF_PARSE()
161 if (*cp == '\'') in PRINTF_PARSE()
164 cp++; in PRINTF_PARSE()
166 else if (*cp == '-') in PRINTF_PARSE()
169 cp++; in PRINTF_PARSE()
171 else if (*cp == '+') in PRINTF_PARSE()
174 cp++; in PRINTF_PARSE()
176 else if (*cp == ' ') in PRINTF_PARSE()
179 cp++; in PRINTF_PARSE()
181 else if (*cp == '#') in PRINTF_PARSE()
184 cp++; in PRINTF_PARSE()
186 else if (*cp == '0') in PRINTF_PARSE()
189 cp++; in PRINTF_PARSE()
196 if (*cp == '*') in PRINTF_PARSE()
198 dp->width_start = cp; in PRINTF_PARSE()
199 cp++; in PRINTF_PARSE()
200 dp->width_end = cp; in PRINTF_PARSE()
205 if (*cp >= '0' && *cp <= '9') in PRINTF_PARSE()
209 for (np = cp; *np >= '0' && *np <= '9'; np++) in PRINTF_PARSE()
215 for (np = cp; *np >= '0' && *np <= '9'; np++) in PRINTF_PARSE()
224 cp = np + 1; in PRINTF_PARSE()
236 else if (*cp >= '0' && *cp <= '9') in PRINTF_PARSE()
240 dp->width_start = cp; in PRINTF_PARSE()
241 for (; *cp >= '0' && *cp <= '9'; cp++) in PRINTF_PARSE()
243 dp->width_end = cp; in PRINTF_PARSE()
250 if (*cp == '.') in PRINTF_PARSE()
252 cp++; in PRINTF_PARSE()
253 if (*cp == '*') in PRINTF_PARSE()
255 dp->precision_start = cp - 1; in PRINTF_PARSE()
256 cp++; in PRINTF_PARSE()
257 dp->precision_end = cp; in PRINTF_PARSE()
262 if (*cp >= '0' && *cp <= '9') in PRINTF_PARSE()
266 for (np = cp; *np >= '0' && *np <= '9'; np++) in PRINTF_PARSE()
272 for (np = cp; *np >= '0' && *np <= '9'; np++) in PRINTF_PARSE()
282 cp = np + 1; in PRINTF_PARSE()
298 dp->precision_start = cp - 1; in PRINTF_PARSE()
299 for (; *cp >= '0' && *cp <= '9'; cp++) in PRINTF_PARSE()
301 dp->precision_end = cp; in PRINTF_PARSE()
317 if (*cp == 'h') in PRINTF_PARSE()
320 cp++; in PRINTF_PARSE()
322 else if (*cp == 'L') in PRINTF_PARSE()
325 cp++; in PRINTF_PARSE()
327 else if (*cp == 'l') in PRINTF_PARSE()
330 cp++; in PRINTF_PARSE()
333 else if (*cp == 'j') in PRINTF_PARSE()
345 cp++; in PRINTF_PARSE()
348 else if (*cp == 'z' || *cp == 'Z') in PRINTF_PARSE()
363 cp++; in PRINTF_PARSE()
365 else if (*cp == 't') in PRINTF_PARSE()
377 cp++; in PRINTF_PARSE()
384 c = *cp++; in PRINTF_PARSE()
498 dp->dir_end = cp; in PRINTF_PARSE()
520 d->dir[d->count].dir_start = cp; in PRINTF_PARSE()