text 73 user/grep.c match(char *re, char *text) text 76 user/grep.c return matchhere(re + 1, text); text 78 user/grep.c if (matchhere(re, text)) text 80 user/grep.c } while (*text++ != '\0'); text 86 user/grep.c matchhere(char *re, char *text) text 91 user/grep.c return matchstar(re[0], re + 2, text); text 93 user/grep.c return *text == '\0'; text 94 user/grep.c if (*text != '\0' && (re[0] == '.' || re[0] == *text)) text 95 user/grep.c return matchhere(re + 1, text + 1); text 101 user/grep.c matchstar(int c, char *re, char *text) text 104 user/grep.c if (matchhere(re, text)) text 106 user/grep.c } while (*text != '\0' && (*text++ == c || c == '.'));