Lines Matching defs:regexp

94 static int get_count(int *countp, const char *regexp);
95 static int get_digit(const char *regexp);
96 static int get_wchar(wchar_t *wchar, const char *regexp);
123 regcmp(const char *regexp, ...)
160 va_start(arg_listp, regexp);
161 next_argp = regexp;
181 va_start(arg_listp, regexp);
183 char_size = get_wchar(&current_char, regexp);
187 regexp += char_size;
189 regexp = next_argp;
191 char_size = get_wchar(&current_char, regexp);
195 regexp += char_size;
202 char_size = get_wchar(&current_char, regexp);
206 regexp += char_size;
210 regexp = next_argp;
212 char_size = get_wchar(&current_char, regexp);
217 regexp += char_size;
248 * from the regular expression and increment regexp to
261 * and with regexp addressing the next character
264 * increments regexp to address the next character
295 char_size = get_wchar(&current_char, regexp);
328 char_size = get_wchar(&current_char, regexp);
333 regexp += char_size;
372 char_size = get_wchar(&current_char, regexp);
377 regexp++;
378 char_size = get_wchar(&current_char, regexp);
383 regexp += char_size;
395 regexp += char_size;
421 char_size = get_wchar(&current_char, regexp);
426 regexp += char_size;
495 &current_char, regexp);
523 regexp += char_size;
544 char_size = get_wchar(&current_char, regexp);
549 regexp += char_size;
641 char_size = get_wchar(&current_char, regexp);
659 regexp ++;
660 return_arg_number = get_digit(regexp);
666 regexp++;
795 count_length = get_count(&min_count, regexp);
800 regexp += count_length;
802 if (*regexp == RIGHT_CURLY_BRACE) { /* {min_count} */
803 regexp++;
805 } else if (*regexp == COMMA) { /* {min_count,..} */
806 regexp++;
808 if (*regexp == RIGHT_CURLY_BRACE) {
809 regexp++;
813 &max_count, regexp);
818 regexp += count_length;
819 if (*regexp != RIGHT_CURLY_BRACE) {
823 regexp++;
860 char_size = get_wchar(&current_char, regexp);
864 regexp += char_size;
866 regexp = next_argp;
868 char_size = get_wchar(&current_char, regexp);
873 regexp += char_size;
931 get_count(int *countp, const char *regexp)
937 if (regexp == (char *)0) {
940 count_char = *regexp;
944 regexp++;
945 count_char = *regexp;
953 get_digit(const char *regexp)
957 if (regexp == (char *)0) {
960 digit = *regexp;
970 get_wchar(wchar_t *wcharp, const char *regexp)
974 if (regexp == (char *)0) {
977 } else if (*regexp == '\0') {
979 *wcharp = (wchar_t)((unsigned int)*regexp);
980 } else if ((unsigned char)*regexp <= (unsigned char)0x7f) {
982 *wcharp = (wchar_t)((unsigned int)*regexp);
984 char_size = mbtowc(wcharp, regexp, MB_LEN_MAX);