Lines Matching +full:- +full:f
4 * SPDX-License-Identifier: Apache-2.0
10 /* Tiny, but not-as-primitive-as-it-looks implementation of something
14 * the regex: [0-9]*\.?[0-9]*
28 if (r->buf != NULL) { in pc()
29 if (r->idx <= r->len) { in pc()
30 r->buf[r->idx] = c; in pc()
35 r->idx++; in pc()
41 pc(r, '-'); in prdec()
42 v = -v; in prdec()
46 int i = sizeof(digs) - 1; in prdec()
49 --i; in prdec()
52 --i; in prdec()
65 if (r->buf && r->idx < r->len) { in endrec()
66 r->buf[r->idx] = 0; in endrec()
70 static int vpf(struct _pfr *r, const char *f, va_list ap) in vpf() argument
72 for (/**/; *f != '\0'; f++) { in vpf()
75 if (*f != '%') { in vpf()
76 pc(r, *f); in vpf()
80 if (f[1] == 'l') { in vpf()
82 f++; in vpf()
86 while (f[1] >= '0' && f[1] <= '9') { in vpf()
87 f++; in vpf()
89 if (f[1] == '.') { in vpf()
90 f++; in vpf()
92 while (f[1] >= '0' && f[1] <= '9') { in vpf()
93 f++; in vpf()
96 switch (*(++f)) { in vpf()
98 return r->idx; in vpf()
122 for (int i = 2*sizeof(long) - 1; i >= 0; i--) { in vpf()
137 pc(r, *f); in vpf()
141 return r->idx; in vpf()
146 va_start(ap, f); \
147 ret = vpf(&r, f, ap); \
150 static inline int snprintf(char *buf, unsigned long len, const char *f, ...) in snprintf() argument
159 static inline int sprintf(char *buf, const char *f, ...) in sprintf() argument
168 static inline int printf(const char *f, ...) in printf() argument