Lines Matching refs:rc

245 #define PCRE_COPY_NAMED_SUBSTRING8(rc, re, bptr, offsets, count, \
247 rc = pcre_copy_named_substring(re, (char *)bptr, offsets, count, \
250 #define PCRE_COPY_SUBSTRING8(rc, bptr, offsets, count, i, cbuffer, size) \
251 rc = pcre_copy_substring((char *)bptr, offsets, count, i, cbuffer, size)
272 #define PCRE_GET_NAMED_SUBSTRING8(rc, re, bptr, offsets, count, \
274 rc = pcre_get_named_substring(re, (char *)bptr, offsets, count, \
277 #define PCRE_GET_STRINGNUMBER8(n, rc, ptr) \
280 #define PCRE_GET_SUBSTRING8(rc, bptr, offsets, count, i, subsptr) \
281 rc = pcre_get_substring((char *)bptr, offsets, count, i, subsptr)
283 #define PCRE_GET_SUBSTRING_LIST8(rc, bptr, offsets, count, listptr) \
284 rc = pcre_get_substring_list((const char *)bptr, offsets, count, listptr)
286 #define PCRE_PATTERN_TO_HOST_BYTE_ORDER8(rc, re, extra, tables) \
287 rc = pcre_pattern_to_host_byte_order(re, extra, tables)
334 #define PCRE_COPY_NAMED_SUBSTRING16(rc, re, bptr, offsets, count, \
336 rc = pcre16_copy_named_substring((pcre16 *)re, (PCRE_SPTR16)bptr, offsets, \
339 #define PCRE_COPY_SUBSTRING16(rc, bptr, offsets, count, i, cbuffer, size) \
340 rc = pcre16_copy_substring((PCRE_SPTR16)bptr, offsets, count, i, \
363 #define PCRE_GET_NAMED_SUBSTRING16(rc, re, bptr, offsets, count, \
365 rc = pcre16_get_named_substring((pcre16 *)re, (PCRE_SPTR16)bptr, offsets, \
368 #define PCRE_GET_STRINGNUMBER16(n, rc, ptr) \
371 #define PCRE_GET_SUBSTRING16(rc, bptr, offsets, count, i, subsptr) \
372 rc = pcre16_get_substring((PCRE_SPTR16)bptr, offsets, count, i, \
375 #define PCRE_GET_SUBSTRING_LIST16(rc, bptr, offsets, count, listptr) \
376 rc = pcre16_get_substring_list((PCRE_SPTR16)bptr, offsets, count, \
379 #define PCRE_PATTERN_TO_HOST_BYTE_ORDER16(rc, re, extra, tables) \
380 rc = pcre16_pattern_to_host_byte_order((pcre16 *)re, (pcre16_extra *)extra, \
426 #define PCRE_COPY_NAMED_SUBSTRING32(rc, re, bptr, offsets, count, \
428 rc = pcre32_copy_named_substring((pcre32 *)re, (PCRE_SPTR32)bptr, offsets, \
431 #define PCRE_COPY_SUBSTRING32(rc, bptr, offsets, count, i, cbuffer, size) \
432 rc = pcre32_copy_substring((PCRE_SPTR32)bptr, offsets, count, i, \
455 #define PCRE_GET_NAMED_SUBSTRING32(rc, re, bptr, offsets, count, \
457 rc = pcre32_get_named_substring((pcre32 *)re, (PCRE_SPTR32)bptr, offsets, \
460 #define PCRE_GET_STRINGNUMBER32(n, rc, ptr) \
463 #define PCRE_GET_SUBSTRING32(rc, bptr, offsets, count, i, subsptr) \
464 rc = pcre32_get_substring((PCRE_SPTR32)bptr, offsets, count, i, \
467 #define PCRE_GET_SUBSTRING_LIST32(rc, bptr, offsets, count, listptr) \
468 rc = pcre32_get_substring_list((PCRE_SPTR32)bptr, offsets, count, \
471 #define PCRE_PATTERN_TO_HOST_BYTE_ORDER32(rc, re, extra, tables) \
472 rc = pcre32_pattern_to_host_byte_order((pcre32 *)re, (pcre32_extra *)extra, \
573 #define PCRE_COPY_NAMED_SUBSTRING(rc, re, bptr, offsets, count, \
576 PCRE_COPY_NAMED_SUBSTRING32(rc, re, bptr, offsets, count, \
579 PCRE_COPY_NAMED_SUBSTRING16(rc, re, bptr, offsets, count, \
582 PCRE_COPY_NAMED_SUBSTRING8(rc, re, bptr, offsets, count, \
585 #define PCRE_COPY_SUBSTRING(rc, bptr, offsets, count, i, cbuffer, size) \
587 PCRE_COPY_SUBSTRING32(rc, bptr, offsets, count, i, cbuffer, size); \
589 PCRE_COPY_SUBSTRING16(rc, bptr, offsets, count, i, cbuffer, size); \
591 PCRE_COPY_SUBSTRING8(rc, bptr, offsets, count, i, cbuffer, size)
641 #define PCRE_GET_NAMED_SUBSTRING(rc, re, bptr, offsets, count, \
644 PCRE_GET_NAMED_SUBSTRING32(rc, re, bptr, offsets, count, \
647 PCRE_GET_NAMED_SUBSTRING16(rc, re, bptr, offsets, count, \
650 PCRE_GET_NAMED_SUBSTRING8(rc, re, bptr, offsets, count, \
653 #define PCRE_GET_STRINGNUMBER(n, rc, ptr) \
655 PCRE_GET_STRINGNUMBER32(n, rc, ptr); \
657 PCRE_GET_STRINGNUMBER16(n, rc, ptr); \
659 PCRE_GET_STRINGNUMBER8(n, rc, ptr)
661 #define PCRE_GET_SUBSTRING(rc, bptr, use_offsets, count, i, subsptr) \
663 PCRE_GET_SUBSTRING32(rc, bptr, use_offsets, count, i, subsptr); \
665 PCRE_GET_SUBSTRING16(rc, bptr, use_offsets, count, i, subsptr); \
667 PCRE_GET_SUBSTRING8(rc, bptr, use_offsets, count, i, subsptr)
669 #define PCRE_GET_SUBSTRING_LIST(rc, bptr, offsets, count, listptr) \
671 PCRE_GET_SUBSTRING_LIST32(rc, bptr, offsets, count, listptr); \
673 PCRE_GET_SUBSTRING_LIST16(rc, bptr, offsets, count, listptr); \
675 PCRE_GET_SUBSTRING_LIST8(rc, bptr, offsets, count, listptr)
695 #define PCRE_PATTERN_TO_HOST_BYTE_ORDER(rc, re, extra, tables) \
697 PCRE_PATTERN_TO_HOST_BYTE_ORDER32(rc, re, extra, tables); \
699 PCRE_PATTERN_TO_HOST_BYTE_ORDER16(rc, re, extra, tables); \
701 PCRE_PATTERN_TO_HOST_BYTE_ORDER8(rc, re, extra, tables)
799 #define PCRE_COPY_NAMED_SUBSTRING(rc, re, bptr, offsets, count, \
802 G(PCRE_COPY_NAMED_SUBSTRING,BITONE)(rc, re, bptr, offsets, count, \
805 G(PCRE_COPY_NAMED_SUBSTRING,BITTWO)(rc, re, bptr, offsets, count, \
808 #define PCRE_COPY_SUBSTRING(rc, bptr, offsets, count, i, cbuffer, size) \
810 G(PCRE_COPY_SUBSTRING,BITONE)(rc, bptr, offsets, count, i, cbuffer, size); \
812 G(PCRE_COPY_SUBSTRING,BITTWO)(rc, bptr, offsets, count, i, cbuffer, size)
850 #define PCRE_GET_NAMED_SUBSTRING(rc, re, bptr, offsets, count, \
853 G(PCRE_GET_NAMED_SUBSTRING,BITONE)(rc, re, bptr, offsets, count, \
856 G(PCRE_GET_NAMED_SUBSTRING,BITTWO)(rc, re, bptr, offsets, count, \
859 #define PCRE_GET_STRINGNUMBER(n, rc, ptr) \
861 G(PCRE_GET_STRINGNUMBER,BITONE)(n, rc, ptr); \
863 G(PCRE_GET_STRINGNUMBER,BITTWO)(n, rc, ptr)
865 #define PCRE_GET_SUBSTRING(rc, bptr, use_offsets, count, i, subsptr) \
867 G(PCRE_GET_SUBSTRING,BITONE)(rc, bptr, use_offsets, count, i, subsptr); \
869 G(PCRE_GET_SUBSTRING,BITTWO)(rc, bptr, use_offsets, count, i, subsptr)
871 #define PCRE_GET_SUBSTRING_LIST(rc, bptr, offsets, count, listptr) \
873 G(PCRE_GET_SUBSTRING_LIST,BITONE)(rc, bptr, offsets, count, listptr); \
875 G(PCRE_GET_SUBSTRING_LIST,BITTWO)(rc, bptr, offsets, count, listptr)
892 #define PCRE_PATTERN_TO_HOST_BYTE_ORDER(rc, re, extra, tables) \
894 G(PCRE_PATTERN_TO_HOST_BYTE_ORDER,BITONE)(rc, re, extra, tables); \
896 G(PCRE_PATTERN_TO_HOST_BYTE_ORDER,BITTWO)(rc, re, extra, tables)
1524 rc the return code from PCRE_CONFIG_NEWLINE
1530 print_newline_config(int rc, BOOL isc)
1534 switch(rc)
1543 printf("a non-standard value: 0x%04x\n", rc);
2032 int rc = utf82ord(p, &c);
2033 if (rc > 0 && rc <= length + 1) /* Mustn't run over the end */
2035 length -= rc - 1;
2036 p += rc;
2412 int rc;
2416 rc = pcre32_fullinfo((pcre32 *)re, (pcre32_extra *)study, option, ptr);
2418 rc = PCRE_ERROR_BADMODE;
2422 rc = pcre16_fullinfo((pcre16 *)re, (pcre16_extra *)study, option, ptr);
2424 rc = PCRE_ERROR_BADMODE;
2428 rc = pcre_fullinfo(re, study, option, ptr);
2430 rc = PCRE_ERROR_BADMODE;
2433 if (rc < 0 && rc != PCRE_ERROR_UNSET)
2435 fprintf(outfile, "Error %d from pcre%s_fullinfo(%d)\n", rc,
2437 if (rc == PCRE_ERROR_BADMODE)
2443 return rc;
3164 int rc;
3168 rc = setrlimit(RLIMIT_STACK, &rlim);
3169 if (rc != 0)
3171 printf("PCRE: setrlimit() failed with error %d\n", rc);
3183 int rc;
3190 (void)PCRE_CONFIG(PCRE_CONFIG_LINK_SIZE, &rc);
3191 printf("%d\n", rc);
3192 yield = rc;
3241 (void)pcre_config(PCRE_CONFIG_UTF8, &rc);
3245 (void)pcre16_config(PCRE_CONFIG_UTF16, &rc);
3249 (void)pcre32_config(PCRE_CONFIG_UTF32, &rc);
3251 printf("%d\n", rc);
3252 yield = rc;
3259 (void)PCRE_CONFIG(PCRE_CONFIG_UNICODE_PROPERTIES, &rc);
3260 printf("%d\n", rc);
3261 yield = rc;
3265 (void)PCRE_CONFIG(PCRE_CONFIG_JIT, &rc);
3266 printf("%d\n", rc);
3267 yield = rc;
3271 (void)PCRE_CONFIG(PCRE_CONFIG_NEWLINE, &rc);
3272 print_newline_config(rc, TRUE);
3276 (void)PCRE_CONFIG(PCRE_CONFIG_BSR, &rc);
3277 printf("%s\n", rc? "ANYCRLF" : "ANY");
3317 (void)pcre_config(PCRE_CONFIG_UTF8, &rc);
3318 printf (" %sUTF-8 support\n", rc ? "" : "No ");
3322 (void)pcre16_config(PCRE_CONFIG_UTF16, &rc);
3323 printf (" %sUTF-16 support\n", rc ? "" : "No ");
3327 (void)pcre32_config(PCRE_CONFIG_UTF32, &rc);
3328 printf (" %sUTF-32 support\n", rc ? "" : "No ");
3331 (void)PCRE_CONFIG(PCRE_CONFIG_UNICODE_PROPERTIES, &rc);
3332 printf(" %sUnicode properties support\n", rc? "" : "No ");
3333 (void)PCRE_CONFIG(PCRE_CONFIG_JIT, &rc);
3334 if (rc)
3342 (void)PCRE_CONFIG(PCRE_CONFIG_NEWLINE, &rc);
3343 print_newline_config(rc, FALSE);
3344 (void)PCRE_CONFIG(PCRE_CONFIG_BSR, &rc);
3345 printf(" \\R matches %s\n", rc? "CR, LF, or CRLF only" :
3347 (void)PCRE_CONFIG(PCRE_CONFIG_LINK_SIZE, &rc);
3348 printf(" Internal link size = %d\n", rc);
3349 (void)PCRE_CONFIG(PCRE_CONFIG_POSIX_MALLOC_THRESHOLD, &rc);
3350 printf(" POSIX malloc threshold = %d\n", rc);
3357 (void)PCRE_CONFIG(PCRE_CONFIG_STACKRECURSE, &rc);
3358 printf(" Match recursion uses %s", rc? "stack" : "heap");
3362 printf(": %sframe size = %d bytes", rc? "approximate " : "", -stack_size);
3616 int rc;
3617 PCRE_PATTERN_TO_HOST_BYTE_ORDER(rc, re, extra, NULL);
3618 if (rc == PCRE_ERROR_BADMODE)
3626 fprintf(outfile, "Error %d from pcre%s_fullinfo(%d)\n", rc,
3920 int rc;
3931 rc = regcomp(&preg, (char *)p, cflags);
3936 if (rc != 0)
3938 (void)regerror(rc, &preg, (char *)buffer, buffer_size);
3939 fprintf(outfile, "Failed: POSIX code %d: %s\n", rc, buffer);
5047 int rc;
5056 rc = regexec(&preg, (const char *)bptr, use_size_offsets, pmatch, eflags);
5058 if (rc != 0)
5060 (void)regerror(rc, &preg, (char *)buffer, buffer_size);
5061 fprintf(outfile, "No match: POSIX code %d: %s\n", rc, buffer);
5313 int rc;
5315 PCRE_COPY_SUBSTRING(rc, bptr, use_offsets, count, i,
5317 if (rc < 0)
5318 fprintf(outfile, "copy substring %d failed %d\n", i, rc);
5322 PCHARSV(copybuffer, 0, rc, outfile);
5323 fprintf(outfile, " (%d)\n", rc);
5331 int rc;
5353 PCRE_COPY_NAMED_SUBSTRING(rc, re, bptr, use_offsets, count,
5356 if (rc < 0)
5360 fprintf(outfile, " failed %d\n", rc);
5365 PCHARSV(copybuffer, 0, rc, outfile);
5366 fprintf(outfile, " (%d) ", rc);
5378 int rc;
5380 PCRE_GET_SUBSTRING(rc, bptr, use_offsets, count, i, &substring);
5381 if (rc < 0)
5382 fprintf(outfile, "get substring %d failed %d\n", i, rc);
5386 PCHARSV(substring, 0, rc, outfile);
5387 fprintf(outfile, " (%d)\n", rc);
5396 int rc;
5418 PCRE_GET_NAMED_SUBSTRING(rc, re, bptr, use_offsets, count,
5420 if (rc < 0)
5424 fprintf(outfile, " failed %d\n", rc);
5429 PCHARSV(substring, 0, rc, outfile);
5430 fprintf(outfile, " (%d) ", rc);
5441 int rc;
5443 PCRE_GET_SUBSTRING_LIST(rc, bptr, use_offsets, count, &stringlist);
5444 if (rc < 0)
5445 fprintf(outfile, "get substring list failed %d\n", rc);