Lines Matching refs:sub
73 * match group begin offsets are even elements of sub
74 * match group end offsets are odd elements of sub
75 * the matched string is from s+sub[0] up to but not
76 * including s+sub[1]
80 strgrpmatch(const char* b, const char* p, ssize_t* sub, int n, register int flags)
99 if (sub && n > 0)
103 int* subi = (int*)sub;
108 sub[0] = sub[1] = 0;
133 if (!sub || n <= 0)
145 if (!sub || n <= 0)
150 int* subi = (int*)sub;
161 end = sub + n * 2;
162 for (n = 0; sub < end && n <= i; n++)
164 *sub++ = matchstate.match[n].rm_so;
165 *sub++ = matchstate.match[n].rm_eo;
204 strgrpmatch(const char* b, const char* p, int* sub, int n, int flags)
206 return strgrpmatch_20120528(b, p, (ssize_t*)sub, n, flags|STR_INT);