Home | History | Annotate | Download | only in dist

Lines Matching refs:PCRE

2 *             PCRE testing program               *
5 /* This program was hacked up as a tester for PCRE. I really should have
40 32-bit PCRE libraries in a single program. This is different from the modules
135 "inside information" compared to a program that strictly follows the PCRE API.
137 Although pcre_internal.h does itself include pcre.h, we explicitly include it
139 appropriately for an application, not for building PCRE. */
141 #include "pcre.h"
150 void pcre_printint(pcre *external_re, FILE *f, BOOL print_lengths);
153 void pcre16_printint(pcre *external_re, FILE *f, BOOL print_lengths);
156 void pcre32_printint(pcre *external_re, FILE *f, BOOL print_lengths);
159 /* We need access to some of the data tables that PCRE uses. So as not to have
198 automatically cut out the UTF support if PCRE is built without it. */
207 for all the pcre[16]_xxx functions (except pcre16_fullinfo, which is called
331 re = (pcre *)pcre16_compile((PCRE_SPTR16)pat, options, error, erroffset, \
423 re = (pcre *)pcre32_compile((PCRE_SPTR32)pat, options, error, erroffset, \
753 if (pcre_mode == G(G(PCRE,BITONE),_MODE)) \
759 if (pcre_mode == G(G(PCRE,BITONE),_MODE)) \
765 if (pcre_mode == G(G(PCRE,BITONE),_MODE)) \
771 if (pcre_mode == G(G(PCRE,BITONE),_MODE)) \
777 if (pcre_mode == G(G(PCRE,BITONE),_MODE)) \
782 #define STRLEN(p) ((pcre_mode == G(G(PCRE,BITONE),_MODE)) ? \
786 if (pcre_mode == G(G(PCRE,BITONE),_MODE)) \
792 if (pcre_mode == G(G(PCRE,BITONE),_MODE)) \
797 #define PCRE_CONFIG G(G(pcre,BITONE),_config)
801 if (pcre_mode == G(G(PCRE,BITONE),_MODE)) \
809 if (pcre_mode == G(G(PCRE,BITONE),_MODE)) \
816 if (pcre_mode == G(G(PCRE,BITONE),_MODE)) \
825 if (pcre_mode == G(G(PCRE,BITONE),_MODE)) \
833 if (pcre_mode == G(G(PCRE,BITONE),_MODE)) \
839 if (pcre_mode == G(G(PCRE,BITONE),_MODE)) \
845 if (pcre_mode == G(G(PCRE,BITONE),_MODE)) \
852 if (pcre_mode == G(G(PCRE,BITONE),_MODE)) \
860 if (pcre_mode == G(G(PCRE,BITONE),_MODE)) \
866 if (pcre_mode == G(G(PCRE,BITONE),_MODE)) \
872 if (pcre_mode == G(G(PCRE,BITONE),_MODE)) \
878 (pcre_mode == G(G(PCRE,BITONE),_MODE)) ? \
883 if (pcre_mode == G(G(PCRE,BITONE),_MODE)) \
889 (pcre_mode == G(G(PCRE
890 G(G(pcre,BITONE),_maketables)() : G(G(pcre,BITTWO),_maketables)()
893 if (pcre_mode == G(G(PCRE,BITONE),_MODE)) \
899 if (pcre_mode == G(G(PCRE,BITONE),_MODE)) \
905 if (pcre_mode == G(G(PCRE,BITONE),_MODE)) \
1173 /* By default, the "tables" pointer when calling PCRE is set to NULL, thereby
1178 /* This is the set of tables distributed as default with PCRE. It recognizes
2156 read_capture_name8(pcre_uint8 *p, pcre_uint8 **pp, pcre *re)
2184 read_capture_name16(pcre_uint8 *p, pcre_uint16 **pp, pcre *re)
2211 read_capture_name32(pcre_uint8 *p, pcre_uint32 **pp, pcre *re)
2234 /* Called from PCRE when set in pcre_stack_guard. We give an error (non-zero)
2246 /* Called from PCRE as a result of the (?C) item. We print out where we are in
2413 new_info(pcre *re, pcre_extra *study, int option, void *ptr)
2438 fprintf(outfile, "Error %d from pcre%s_fullinfo(%d)\n", rc,
2488 bytes in the pattern itself. This is to make it possible to test PCRE's
2494 regexflip8_or_16(pcre *ere, pcre_extra *extra)
2681 regexflip_32(pcre *ere, pcre_extra *extra)
2776 regexflip(pcre *ere, pcre_extra *extra)
2795 check_match_limit(pcre *re, pcre_extra *extra, pcre_uint8 *bptr, int len,
2927 printf(" -C show PCRE compile-time options and exit\n");
2952 printf(" -q quiet: do not output PCRE version number at start\n");
3105 printf("** This version of PCRE was built without 8-bit support\n");
3114 printf("** This version of PCRE was built without 16-bit support\n");
3123 printf("** This version of PCRE was built without 32-bit support\n");
3164 printf("PCRE: -S not supported on this OS\n");
3174 printf("PCRE: setrlimit() failed with error %d\n", rc);
3308 printf("PCRE version %s\n", version);
3449 if (!quiet) fprintf(outfile, "PCRE version %s\n\n", version);
3455 pcre *re = NULL;
3557 re = (pcre *)new_malloc(true_size);
3560 printf("** Failed to get %d bytes of memory for pcre object\n",
3576 fprintf(outfile, "Data in %s is not a compiled PCRE regex\n", p);
3629 fprintf(outfile, "Error %d from pcre%s_fullinfo(%d)\n", rc,
4395 fprintf(outfile, "JIT support is not available in this version of PCRE\n");
5238 "** PCRE error: returned count %d is too big for offset size %d\n",