Lines Matching defs:prog
916 RegExp::RunMatcher(regexp* prog, const char* string) const
921 if (prog == NULL || string == NULL) {
927 if (UCharAt(prog->program) != kRegExpMagic) {
933 if (prog->regmust != NULL) {
935 while ((s = strchr(s, prog->regmust[0])) != NULL) {
936 if (strncmp(s, prog->regmust, (size_t)prog->regmlen) == 0) {
952 if (prog->reganch)
953 return Try(prog, (char*)string);
957 if (prog->regstart != '\0') {
959 while ((s = strchr(s, prog->regstart)) != NULL) {
960 if (Try(prog, (char*)s))
967 if (Try(prog, (char*)s))
983 RegExp::Try(regexp* prog, const char* string) const
990 fStartPArrayPointer = prog->startp;
991 fEndPArrayPointer = prog->endp;
993 sp = prog->startp;
994 ep = prog->endp;
999 if (Match(prog->program + 1)) {
1000 prog->startp[0] = string;
1001 prog->endp[0] = fStringInputPointer;
1021 RegExp::Match(const char* prog) const
1026 scan = prog;