reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
332 p->next = (char *)pattern; /* convenience; we do not modify it */ 333 p->end = p->next + len; 404 while (MORE() && (c = PEEK()) != '|' && c != stop) 404 while (MORE() && (c = PEEK()) != '|' && c != stop) 408 if (!EAT('|')) 447 c = GETNEXT(); 452 REQUIRE(MORE(), REG_EPAREN); 458 if (!SEE(')')) 465 MUSTEAT(')', REG_EPAREN); 508 REQUIRE(MORE(), REG_EESCAPE); 509 c = GETNEXT(); 540 REQUIRE(!MORE() || !isdigit((uch)PEEK()), REG_BADRPT); 540 REQUIRE(!MORE() || !isdigit((uch)PEEK()), REG_BADRPT); 547 if (!MORE()) 549 c = PEEK(); 552 (c == '{' && MORE2() && isdigit((uch)PEEK2())) )) 552 (c == '{' && MORE2() && isdigit((uch)PEEK2())) )) 554 NEXT(); 580 if (EAT(',')) { 581 if (isdigit((uch)PEEK())) { 589 if (!EAT('}')) { /* error heuristics */ 590 while (MORE() && PEEK() != '}') 590 while (MORE() && PEEK() != '}') 591 NEXT(); 592 REQUIRE(MORE(), REG_EBRACE); 598 if (!MORE()) 600 c = PEEK(); 602 (c == '{' && MORE2() && isdigit((uch)PEEK2())) ) ) 602 (c == '{' && MORE2() && isdigit((uch)PEEK2())) ) ) 613 REQUIRE(MORE(), REG_EMPTY); 614 while (MORE()) 615 ordinary(p, GETNEXT()); 637 if (EAT('^')) { 642 while (MORE() && !SEETWO(end1, end2)) { 642 while (MORE() && !SEETWO(end1, end2)) { 674 c = GETNEXT(); 676 REQUIRE(MORE(), REG_EESCAPE); 677 c = BACKSL | GETNEXT(); 699 if (MORE() && !SEETWO('\\', ')')) 699 if (MORE() && !SEETWO('\\', ')')) 706 REQUIRE(EATTWO('\\', ')'), REG_EPAREN); 743 if (EAT('*')) { /* implemented as +? */ 749 } else if (EATTWO('\\', '{')) { 751 if (EAT(',')) { 752 if (MORE() && isdigit((uch)PEEK())) { 752 if (MORE() && isdigit((uch)PEEK())) { 760 if (!EATTWO('\\', '}')) { /* error heuristics */ 761 while (MORE() && !SEETWO('\\', '}')) 761 while (MORE() && !SEETWO('\\', '}')) 762 NEXT(); 763 REQUIRE(MORE(), REG_EBRACE); 781 while (MORE() && isdigit((uch)PEEK()) && count <= DUPMAX) { 781 while (MORE() && isdigit((uch)PEEK()) && count <= DUPMAX) { 782 count = count*10 + (GETNEXT() - '0'); 803 if (p->next + 5 < p->end && strncmp(p->next, "[:<:]]", 6) == 0) { 803 if (p->next + 5 < p->end && strncmp(p->next, "[:<:]]", 6) == 0) { 805 NEXTn(6); 808 if (p->next + 5 < p->end && strncmp(p->next, "[:>:]]", 6) == 0) { 808 if (p->next + 5 < p->end && strncmp(p->next, "[:>:]]", 6) == 0) { 810 NEXTn(6); 819 if (EAT('^')) 821 if (EAT(']')) 823 else if (EAT('-')) 825 while (MORE() && PEEK() != ']' && !SEETWO('-', ']')) 825 while (MORE() && PEEK() != ']' && !SEETWO('-', ']')) 825 while (MORE() && PEEK() != ']' && !SEETWO('-', ']')) 827 if (EAT('-')) 829 MUSTEAT(']', REG_EBRACK); 883 switch ((MORE()) ? PEEK() : '\0') { 883 switch ((MORE()) ? PEEK() : '\0') { 885 c = (MORE2()) ? PEEK2() : '\0'; 885 c = (MORE2()) ? PEEK2() : '\0'; 898 NEXT2(); 899 REQUIRE(MORE(), REG_EBRACK); 900 c = PEEK(); 903 REQUIRE(MORE(), REG_EBRACK); 904 REQUIRE(EATTWO(':', ']'), REG_ECTYPE); 907 NEXT2(); 908 REQUIRE(MORE(), REG_EBRACK); 909 c = PEEK(); 912 REQUIRE(MORE(), REG_EBRACK); 913 REQUIRE(EATTWO('=', ']'), REG_ECOLLATE); 918 if (SEE('-') && MORE2() && PEEK2() != ']') { 918 if (SEE('-') && MORE2() && PEEK2() != ']') { 918 if (SEE('-') && MORE2() && PEEK2() != ']') { 920 NEXT(); 921 if (EAT('-')) 941 char *sp = p->next; 947 while (MORE() && isalpha((uch)PEEK())) 947 while (MORE() && isalpha((uch)PEEK())) 948 NEXT(); 949 len = p->next - sp; 988 REQUIRE(MORE(), REG_EBRACK); 989 if (!EATTWO('[', '.')) 990 return(GETNEXT()); 994 REQUIRE(EATTWO('.', ']'), REG_ECOLLATE); 1005 char *sp = p->next; 1009 while (MORE() && !SEETWO(endc, ']')) 1009 while (MORE() && !SEETWO(endc, ']')) 1010 NEXT(); 1011 if (!MORE()) { 1015 len = p->next - sp; 1049 char *oldnext = p->next; 1055 p->next = bracket; 1062 p->next = oldnext; 1091 char *oldnext = p->next; 1095 p->next = bracket; 1103 p->next = oldnext; 1185 p->next = nuls; /* try to bring things to a halt */