Lines Matching refs:regexp

135 	const char *regexp);
140 const char *regexp);
145 const char *regexp);
149 const char *regexp);
172 regex(const char *regexp, const char *stringp, ...)
191 if ((stringp == (char *)0) || (regexp == (char *)0)) {
215 if ((int)*regexp == (int)START_OF_STRING_MARK) {
222 regexp++;
223 end_of_matchp = test_string(stringp, regexp);
225 } else if ((int)*regexp == (int)ASCII_CHAR) {
236 while ((*stringp != *(regexp + 1)) && (*stringp != '\0')) {
240 end_of_matchp = test_string(stringp, regexp);
245 while ((*stringp != *(regexp + 1)) && (*stringp != '\0')) {
263 end_of_matchp = test_string(stringp, regexp);
266 end_of_matchp = test_string(stringp, regexp);
272 } else if ((int)*regexp == (int)MULTIBYTE_CHAR) {
283 (void) get_wchar(&regex_wchar, regexp + 1);
290 end_of_matchp = test_string(stringp, regexp);
313 end_of_matchp = test_string(stringp, regexp);
317 end_of_matchp = test_string(stringp, regexp);
655 const char *regexp)
659 end_of_matchp = test_string(stringp, regexp);
663 end_of_matchp = test_string(stringp, regexp);
671 const char *regexp)
675 end_of_matchp = test_string(stringp, regexp);
679 end_of_matchp = test_string(stringp, regexp);
687 const char *regexp)
691 end_of_matchp = test_string(stringp, regexp);
698 end_of_matchp = test_string(stringp, regexp);
705 const char *regexp)
710 * the compiled regular expression addressed by regexp
733 switch ((int)*regexp) {
738 * addressing the next character to be tested and regexp
763 regexp++;
764 if (*regexp == *stringp) {
765 regexp++;
776 regexp++;
777 regex_char_size = get_wchar(&regex_wchar, regexp);
782 regexp += regex_char_size;
795 regexp++;
803 regexp++;
819 if ((int)*regexp == (int)IN_ASCII_CHAR_CLASS) {
824 regexp++; /* point to the <class_length> byte */
827 (test_char_against_ascii_class(*stringp, regexp,
829 regexp += (int)*regexp; /* add the class length to regexp */
846 if ((int)*regexp == (int)IN_MULTIBYTE_CHAR_CLASS) {
851 regexp++; /* point to the <class_length> byte */
855 (test_char_against_multibyte_class(string_wchar, regexp,
857 regexp += (int)*regexp; /* add the class length to regexp */
874 if ((int)*regexp == (int)IN_OLD_ASCII_CHAR_CLASS) {
879 regexp++; /* point to the <class_length> byte */
882 (test_char_against_old_ascii_class(*stringp, regexp,
884 regexp += (int)*regexp; /* add the class length to regexp */
895 regexp += 2;
902 regexp += 2;
909 regexp++;
910 substringn = (unsigned int)*regexp;
914 regexp++;
924 regexp++;
925 substringn = (unsigned int)*regexp;
929 regexp++;
930 return_argn = (unsigned int)*regexp;
934 regexp++;
941 regexp++;
943 while (*stringp == *regexp) {
946 regexp++;
948 stringp, regexp));
956 regexp++;
957 if (*stringp != *regexp) {
962 while (*stringp == *regexp) {
965 regexp++;
967 regexp));
978 regexp++;
980 regexp + 1);
981 while ((*stringp == *regexp) && (nmust_match > 0)) {
989 while (*stringp == *regexp) {
992 regexp += 3;
994 regexp));
997 while ((*stringp == *regexp) &&
1002 regexp += 3;
1004 regexp));
1012 regexp++;
1013 regex_char_size = get_wchar(&regex_wchar, regexp);
1021 regexp += regex_char_size;
1023 regexp));
1031 regexp++;
1032 regex_char_size = get_wchar(&regex_wchar, regexp);
1045 regexp += regex_char_size;
1047 regexp));
1058 regexp++;
1059 regex_char_size = get_wchar(&regex_wchar, regexp);
1061 regexp + regex_char_size);
1080 regexp += regex_char_size + 2;
1082 regexp));
1092 regexp += regex_char_size + 2;
1094 regexp));
1107 regexp++;
1109 regexp));
1116 regexp++;
1118 regexp));
1135 regexp++;
1137 regexp));
1152 regexp++;
1154 stringp, regexp));
1167 regexp + 1);
1180 regexp += 3;
1182 regexp));
1190 regexp += 3;
1192 regexp));
1211 regexp += 3;
1213 stringp, regexp));
1223 regexp += 3;
1225 stringp, regexp));
1241 if ((int)*regexp == (int)(IN_ASCII_CHAR_CLASS|ZERO_OR_MORE)) {
1246 regexp++; /* point to the <class_length> byte */
1250 (test_char_against_ascii_class(*stringp, regexp,
1254 regexp += (int)*regexp; /* add the class length to regexp */
1256 regexp));
1272 if ((int)*regexp == (int)(IN_ASCII_CHAR_CLASS|ONE_OR_MORE)) {
1277 regexp++; /* point to the <class_length> byte */
1280 (test_char_against_ascii_class(*stringp, regexp,
1287 (test_char_against_ascii_class(*stringp, regexp,
1291 regexp += (int)*regexp; /* add the class length to regexp */
1293 regexp));
1313 if ((int)*regexp == (int)(IN_ASCII_CHAR_CLASS|COUNT)) {
1318 regexp++; /* point to the <class_length> byte */
1321 regexp + (int)*regexp);
1323 (test_char_against_ascii_class(*stringp, regexp,
1334 (test_char_against_ascii_class(*stringp, regexp,
1338 regexp += (int)*regexp + 2;
1340 regexp));
1344 (test_char_against_ascii_class(*stringp, regexp,
1350 regexp += (int)*regexp + 2;
1352 regexp));
1368 if ((int)*regexp ==
1374 regexp++; /* point to the <class_length> byte */
1379 (test_char_against_multibyte_class(string_wchar, regexp,
1384 regexp += (int)*regexp; /* add the class length to regexp */
1386 regexp));
1402 if ((int)*regexp ==
1408 regexp++; /* point to the <class_length> byte */
1412 (test_char_against_multibyte_class(string_wchar, regexp,
1421 regexp, test_condition) == CONDITION_TRUE)) {
1425 regexp += (int)*regexp; /* add the class length to regexp */
1427 regexp));
1445 if ((int)*regexp == (int)(IN_MULTIBYTE_CHAR_CLASS|COUNT)) {
1450 regexp++; /* point to the <class_length> byte */
1453 regexp + (int)*regexp);
1456 (test_char_against_multibyte_class(string_wchar, regexp,
1469 regexp, test_condition) == CONDITION_TRUE)) {
1473 regexp += (int)*regexp + 2;
1475 regexp));
1480 regexp, test_condition) == CONDITION_TRUE) &&
1486 regexp += (int)*regexp + 2;
1488 regexp));
1504 if ((int)*regexp ==
1510 regexp++; /* point to the <class_length> byte */
1514 (test_char_against_old_ascii_class(*stringp, regexp,
1518 regexp += (int)*regexp; /* add the class length to regexp */
1520 regexp));
1536 if ((int)*regexp ==
1542 regexp++; /* point to the <class_length> byte */
1545 (test_char_against_old_ascii_class(*stringp, regexp,
1552 (test_char_against_old_ascii_class(*stringp, regexp,
1556 regexp += (int)*regexp; /* add the class length to regexp */
1558 regexp));
1578 if ((int)*regexp == (int)(IN_OLD_ASCII_CHAR_CLASS|COUNT)) {
1583 regexp++; /* point to the <class_length> byte */
1586 regexp + (int)*regexp);
1588 (test_char_against_old_ascii_class(*stringp, regexp,
1599 (test_char_against_old_ascii_class(*stringp, regexp,
1603 regexp += (int)*regexp + 2;
1605 regexp));
1609 (test_char_against_old_ascii_class(*stringp, regexp,
1615 regexp += (int)*regexp + 2;
1617 regexp));
1640 (((unsigned int)*regexp & ADDED_LENGTH_BITS) <<
1642 regexp++;
1643 group_length += (unsigned int)*regexp;
1644 regexp++;
1646 test_stringp = test_string(stringp, regexp);
1651 test_stringp = test_string(stringp, regexp);
1653 regexp += group_length;
1654 return (test_repeated_group(repeat_startp, stringp, regexp));
1686 (((unsigned int)*regexp & ADDED_LENGTH_BITS) <<
1688 regexp++;
1689 group_length += (unsigned int)*regexp;
1690 regexp++;
1691 stringp = test_string(stringp, regexp);
1695 test_stringp = test_string(stringp, regexp);
1700 test_stringp = test_string(stringp, regexp);
1702 regexp += group_length;
1703 return (test_repeated_group(repeat_startp, stringp, regexp));
1737 (((unsigned int)*regexp & ADDED_LENGTH_BITS) <<
1739 regexp++;
1740 group_length += (unsigned int)*regexp;
1741 regexp++;
1743 regexp + group_length);
1744 test_stringp = test_string(stringp, regexp);
1748 test_stringp = test_string(stringp, regexp);
1758 test_stringp = test_string(stringp, regexp);
1760 regexp += group_length + 2;
1762 regexp));
1771 test_stringp = test_string(stringp, regexp);
1773 regexp += group_length + 2;
1775 regexp));
1794 regexp++;
1812 } /* end switch (*regexp) */