Lines Matching refs:u
112 } u; member
139 v->u.i = i; in int_value()
152 v->u.s = xstrdup(s); in str_value()
161 free(v->u.s); in freev()
170 return v->u.i == 0; in null()
172 return v->u.s[0] == '\0' || LONE_CHAR(v->u.s, '0'); in null()
180 v->u.s = xasprintf("%" PF_REZ "d", PF_REZ_TYPE v->u.i); in tostring()
195 i = STRTOL(v->u.s, &e, 10); in toarith()
196 if ((v->u.s == e) || *e) in toarith()
198 free(v->u.s); in toarith()
199 v->u.i = i; in toarith()
221 ll = l->u.i; in cmp_common()
222 rr = r->u.i; in cmp_common()
226 ll = strcmp(l->u.s, r->u.s); in cmp_common()
253 li = l->u.i; in arithmetic_common()
254 ri = r->u.i; in arithmetic_common()
282 if (pv->u.s[0] == '^') { in docolon()
285 "of a basic regular expression is not portable; it is ignored", pv->u.s); in docolon()
290 xregcomp(&re_buffer, pv->u.s, 0); in docolon()
294 if (regexec(&re_buffer, sv->u.s, NMATCH, re_regs, 0) != REG_NOMATCH in docolon()
299 sv->u.s[re_regs[1].rm_eo] = '\0'; in docolon()
300 v = str_value(sv->u.s + re_regs[1].rm_so); in docolon()
362 v = int_value(strlen(r->u.s)); in eval6()
377 v = int_value(strcspn(l->u.s, r->u.s) + 1); in eval6()
378 if (v->u.i == (arith_t) strlen(l->u.s) + 1) in eval6()
379 v->u.i = 0; in eval6()
388 || i1->u.i > (arith_t) strlen(l->u.s) in eval6()
389 || i1->u.i <= 0 || i2->u.i <= 0) in eval6()
394 v->u.s = xstrndup(l->u.s + i1->u.i - 1, i2->u.i); in eval6()
555 printf("%" PF_REZ "d\n", PF_REZ_TYPE v->u.i); in expr_main()
557 puts(v->u.s); in expr_main()