Lines Matching refs:pos
66 int ln, const char *p, int *pos) in mods() argument
75 while (p[*pos] == ' ' || p[*pos] == '\t') in mods()
76 (*pos)++; in mods()
80 if (strchr(".,-=^_ACLNRSaclnrs", p[*pos]) != NULL) in mods()
85 if ('(' == p[*pos]) { in mods()
86 (*pos)++; in mods()
87 while (p[*pos] && ')' != p[*pos]) in mods()
88 (*pos)++; in mods()
89 if (')' == p[*pos]) { in mods()
90 (*pos)++; in mods()
93 mandoc_msg(MANDOCERR_TBLLAYOUT_PAR, ln, *pos, NULL); in mods()
99 if (isdigit((unsigned char)p[*pos])) { in mods()
100 if ((spacing = strtoul(p + *pos, &endptr, 10)) > 9) in mods()
101 mandoc_msg(MANDOCERR_TBLLAYOUT_SPC, ln, *pos, in mods()
105 *pos = endptr - p; in mods()
109 switch (tolower((unsigned char)p[(*pos)++])) { in mods()
125 mandoc_msg(MANDOCERR_TBLLAYOUT_MOD, ln, *pos, "m"); in mods()
129 if (p[*pos] == '-' || p[*pos] == '+') in mods()
130 (*pos)++; in mods()
131 while (isdigit((unsigned char)p[*pos])) in mods()
132 (*pos)++; in mods()
142 if (p[*pos] == '(') { in mods()
143 (*pos)++; in mods()
144 while (p[*pos + sz] != '\0' && p[*pos + sz] != ')') in mods()
147 while (isdigit((unsigned char)p[*pos + sz])) in mods()
151 cp->wstr = mandoc_strndup(p + *pos, sz); in mods()
152 *pos += sz; in mods()
153 if (p[*pos] == ')') in mods()
154 (*pos)++; in mods()
168 ln, *pos - 1, NULL); in mods()
172 ln, *pos - 1, "%c", p[*pos - 1]); in mods()
176 while (p[*pos] == ' ' || p[*pos] == '\t') in mods()
177 (*pos)++; in mods()
181 if (p[*pos] == '(') in mods()
185 if (p[*pos] != '\0') in mods()
187 if (strchr(" \t.", p[*pos + isz]) == NULL) in mods()
190 fontesc = mandoc_font(p + *pos, isz); in mods()
196 ln, *pos, "TS %s", p + *pos - 1); in mods()
202 *pos += isz; in mods()
208 int ln, const char *p, int *pos) in cell() argument
215 while (p[*pos] == ' ' || p[*pos] == '\t' || p[*pos] == '|') { in cell()
216 if (p[*pos] == '|') { in cell()
221 ln, *pos, NULL); in cell()
223 (*pos)++; in cell()
227 while (p[*pos] == ' ' || p[*pos] == '\t') in cell()
228 (*pos)++; in cell()
230 if (p[*pos] == '.' || p[*pos] == '\0') in cell()
236 if (tolower((unsigned char)p[*pos]) == keys[i].name) in cell()
241 ln, *pos, "%c", p[*pos]); in cell()
242 (*pos)++; in cell()
251 mandoc_msg(MANDOCERR_TBLLAYOUT_SPAN, ln, *pos, NULL); in cell()
252 else if (rp->last->pos == TBL_CELL_HORIZ || in cell()
253 rp->last->pos == TBL_CELL_DHORIZ) in cell()
254 c = rp->last->pos; in cell()
256 mandoc_msg(MANDOCERR_TBLLAYOUT_DOWN, ln, *pos, NULL); in cell()
258 (*pos)++; in cell()
262 mods(tbl, cell_alloc(tbl, rp, c), ln, p, pos); in cell()
266 tbl_layout(struct tbl_node *tbl, int ln, const char *p, int pos) in tbl_layout() argument
274 while (p[pos] == ' ' || p[pos] == '\t') in tbl_layout()
275 pos++; in tbl_layout()
277 switch (p[pos]) { in tbl_layout()
279 pos++; in tbl_layout()
285 pos++; in tbl_layout()
299 ln, pos, NULL); in tbl_layout()
351 cell(tbl, rp, ln, p, &pos); in tbl_layout()
356 cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, enum tbl_cellt pos) in cell_alloc() argument
363 p->pos = pos; in cell_alloc()