Lines Matching defs:sp
531 const struct seqtable * __restrict sp)
535 p = sp->chars;
536 while ((size_t)(p - sp->chars) < n && p - sp->chars < sp->len) {
572 return (p - sp->chars);
580 const struct seqtable *sp;
613 for (sp = &seqtable[0]; sp->len; sp++) {
614 nmatch = seqmatch(string, n, sp);
615 if (sp->len == nmatch && n >= (size_t)(sp->len))
619 if (!sp->len)
622 if (sp->type != -1) {
623 if (sp->csoff == -1)
626 switch (sp->type) {
629 i = string[sp->csoff] - '(';
633 i = string[sp->csoff] - ',';
639 psenc->g[i].type = sp->type;
643 /* sp->finaloff must not be -1 */
644 if (sp->finaloff != -1)
645 psenc->g[i].final = string[sp->finaloff];
646 if (sp->intermoff != -1)
647 psenc->g[i].interm = string[sp->intermoff];
648 if (sp->versoff != -1)
649 psenc->g[i].vers = string[sp->versoff];
651 string += sp->len;
652 n -= sp->len;
689 for (sp = &seqtable[0]; sp->len; sp++) {
690 nmatch = seqmatch(string, n, sp);
698 if (n < (size_t)(sp->len)) {
705 if (nmatch == sp->len) {