Lines Matching defs:sub
71 * match group begin offsets are even elements of sub
72 * match group end offsets are odd elements of sub
73 * the matched string is from s+sub[0] up to but not
74 * including s+sub[1]
78 strgrpmatch(const char* b, const char* p, int* sub, int n, register int flags)
97 if (sub && n > 0)
98 sub[0] = sub[1] = 0;
122 if (!sub || n <= 0)
134 if (!sub || n <= 0)
137 end = sub + n * 2;
138 for (n = 0; sub < end && n <= i; n++)
140 *sub++ = matchstate.match[n].rm_so;
141 *sub++ = matchstate.match[n].rm_eo;