Lines Matching refs:start

369 	char		*start, *next;  in eqn_next()  local
389 start = &ep->data[(int)ep->cur]; in eqn_next()
392 if ('\0' == *start) in eqn_next()
395 if (quote == *start) { in eqn_next()
400 start = &ep->data[(int)ep->cur]; in eqn_next()
403 if ('{' == *start || '}' == *start) in eqn_next()
406 ssz = strcspn(start + 1, " ^~\"{}\t") + 1; in eqn_next()
407 next = start + (int)ssz; in eqn_next()
411 next = strchr(start, quote); in eqn_next()
414 *sz = (size_t)(next - start); in eqn_next()
427 next = strchr(start, '\0'); in eqn_next()
428 *sz = (size_t)(next - start); in eqn_next()
435 return(start); in eqn_next()
437 if (NULL != (def = eqn_def_find(ep, start, *sz))) { in eqn_next()
444 start = &ep->data[(int)ep->rew]; in eqn_next()
448 memmove(start + *sz + diff, start + *sz, in eqn_next()
449 (strlen(start) - *sz) + 1); in eqn_next()
450 memcpy(start, def->val, def->valsz); in eqn_next()
454 return(start); in eqn_next()
491 const char *start; in eqn_tok_parse() local
500 if (NULL == (start = eqn_nexttok(ep, &sz))) in eqn_tok_parse()
505 *p = mandoc_strndup(start, sz); in eqn_tok_parse()
512 if (STRNEQ(start, sz, eqn_toks[i], strlen(eqn_toks[i]))) in eqn_tok_parse()
517 *p = mandoc_strndup(start, sz); in eqn_tok_parse()
599 const char *start; in eqn_delim() local
602 if ((start = eqn_nextrawtok(ep, &sz)) == NULL) in eqn_delim()
605 else if (strncmp(start, "off", 3) == 0) in eqn_delim()
607 else if (strncmp(start, "on", 2) == 0) { in eqn_delim()
610 } else if (start[1] != '\0') { in eqn_delim()
611 ep->odelim = start[0]; in eqn_delim()
612 ep->cdelim = start[1]; in eqn_delim()
623 const char *start; in eqn_undef() local
627 if ((start = eqn_nextrawtok(ep, &sz)) == NULL) { in eqn_undef()
632 if ((def = eqn_def_find(ep, start, sz)) == NULL) in eqn_undef()
643 const char *start; in eqn_def() local
648 if ((start = eqn_nextrawtok(ep, &sz)) == NULL) { in eqn_def()
658 if (NULL == (def = eqn_def_find(ep, start, sz))) { in eqn_def()
673 def->key = mandoc_strndup(start, sz); in eqn_def()
677 start = eqn_next(ep, ep->data[(int)ep->cur], &sz, 0); in eqn_def()
678 if (start == NULL) { in eqn_def()
688 def->val = mandoc_strndup(start, sz); in eqn_def()
700 const char *start; in eqn_parse() local
858 if (NULL == (start = eqn_nexttok(ep, &sz))) { in eqn_parse()
863 size = mandoc_strntoi(start, sz, 10); in eqn_parse()
972 if (NULL == (start = eqn_nexttok(ep, &sz))) { in eqn_parse()
979 if (STRNEQ(start, sz, "ceiling", 7)) { in eqn_parse()
982 } else if (STRNEQ(start, sz, "floor", 5)) { in eqn_parse()
986 parent->right = mandoc_strndup(start, sz); in eqn_parse()
1008 (start = eqn_nexttok(ep, &sz)) == NULL) { in eqn_parse()
1016 if (STRNEQ(start, sz, "ceiling", 7)) { in eqn_parse()
1019 } else if (STRNEQ(start, sz, "floor", 5)) { in eqn_parse()
1023 parent->left = mandoc_strndup(start, sz); in eqn_parse()