offsets 6346 ext/pcre/pcrelib/pcre_exec.c PCRE_SPTR subject, int length, int start_offset, int options, int *offsets, offsets 6351 ext/pcre/pcrelib/pcre_exec.c PCRE_SPTR16 subject, int length, int start_offset, int options, int *offsets, offsets 6356 ext/pcre/pcrelib/pcre_exec.c PCRE_SPTR32 subject, int length, int start_offset, int options, int *offsets, offsets 6409 ext/pcre/pcrelib/pcre_exec.c if (re == NULL || subject == NULL || (offsets == NULL && offsetcount > 0)) offsets 6447 ext/pcre/pcrelib/pcre_exec.c offsets[0] = erroroffset; offsets 6448 ext/pcre/pcrelib/pcre_exec.c offsets[1] = errorcode; offsets 6482 ext/pcre/pcrelib/pcre_exec.c start_offset, options, offsets, offsetcount); offsets 6669 ext/pcre/pcrelib/pcre_exec.c else md->offset_vector = offsets; offsets 7061 ext/pcre/pcrelib/pcre_exec.c memcpy(offsets + 2, md->offset_vector + 2, offsets 7086 ext/pcre/pcrelib/pcre_exec.c if (md->end_offset_top/2 <= re->top_bracket && offsets != NULL) offsets 7091 ext/pcre/pcrelib/pcre_exec.c iptr = offsets + md->end_offset_top; offsets 7092 ext/pcre/pcrelib/pcre_exec.c iend = offsets + resetcount; offsets 7102 ext/pcre/pcrelib/pcre_exec.c offsets[0] = (int)(md->start_match_ptr - md->start_subject); offsets 7103 ext/pcre/pcrelib/pcre_exec.c offsets[1] = (int)(md->end_match_ptr - md->start_subject); offsets 7145 ext/pcre/pcrelib/pcre_exec.c offsets[0] = (int)(start_partial - (PCRE_PUCHAR)subject); offsets 7146 ext/pcre/pcrelib/pcre_exec.c offsets[1] = (int)(end_subject - (PCRE_PUCHAR)subject); offsets 7148 ext/pcre/pcrelib/pcre_exec.c offsets[2] = (int)(match_partial - (PCRE_PUCHAR)subject); offsets 166 ext/pcre/pcrelib/pcre_jit_compile.c int *offsets; offsets 2268 ext/pcre/pcrelib/pcre_jit_compile.c OP2(SLJIT_SUB, SLJIT_R2, 0, SLJIT_MEM1(SLJIT_R0), SLJIT_OFFSETOF(jit_arguments, offsets), SLJIT_IMM, sizeof(int)); offsets 2318 ext/pcre/pcrelib/pcre_jit_compile.c OP1(SLJIT_MOV, SLJIT_R1, 0, SLJIT_MEM1(SLJIT_R1), SLJIT_OFFSETOF(jit_arguments, offsets)); offsets 3581 ext/pcre/pcrelib/pcre_jit_compile.c int offsets[3]; offsets 3659 ext/pcre/pcrelib/pcre_jit_compile.c offsets[0] = -1; offsets 3663 ext/pcre/pcrelib/pcre_jit_compile.c offsets[0] = i; offsets 3667 ext/pcre/pcrelib/pcre_jit_compile.c if (offsets[0] < 0 && range_right < 0) offsets 3670 ext/pcre/pcrelib/pcre_jit_compile.c if (offsets[0] >= 0) offsets 3673 ext/pcre/pcrelib/pcre_jit_compile.c offsets[1] = -1; offsets 3674 ext/pcre/pcrelib/pcre_jit_compile.c for (i = max - 1; i > offsets[0]; i--) offsets 3677 ext/pcre/pcrelib/pcre_jit_compile.c offsets[1] = i; offsets 3682 ext/pcre/pcrelib/pcre_jit_compile.c if (offsets[1] == -1 && offsets[0] == 0 && range_right < 0) offsets 3685 ext/pcre/pcrelib/pcre_jit_compile.c offsets[2] = -1; offsets 3687 ext/pcre/pcrelib/pcre_jit_compile.c if (offsets[1] >= 0 && range_right == -1) offsets 3690 ext/pcre/pcrelib/pcre_jit_compile.c for (i = (offsets[0] + offsets[1]) / 2 + 1; i < offsets[1]; i++) offsets 3693 ext/pcre/pcrelib/pcre_jit_compile.c offsets[2] = i; offsets 3697 ext/pcre/pcrelib/pcre_jit_compile.c if (offsets[2] == -1) offsets 3699 ext/pcre/pcrelib/pcre_jit_compile.c for (i = (offsets[0] + offsets[1]) / 2; i > offsets[0]; i--) offsets 3702 ext/pcre/pcrelib/pcre_jit_compile.c offsets[2] = i; offsets 3708 ext/pcre/pcrelib/pcre_jit_compile.c SLJIT_ASSERT(offsets[1] == -1 || (offsets[0] < offsets[1])); offsets 3709 ext/pcre/pcrelib/pcre_jit_compile.c SLJIT_ASSERT(offsets[2] == -1 || (offsets[0] < offsets[2] && offsets[1] > offsets[2])); offsets 3711 ext/pcre/pcrelib/pcre_jit_compile.c chars[0] = chars[offsets[0] << 1]; offsets 3712 ext/pcre/pcrelib/pcre_jit_compile.c chars[1] = chars[(offsets[0] << 1) + 1]; offsets 3713 ext/pcre/pcrelib/pcre_jit_compile.c if (offsets[2] >= 0) offsets 3715 ext/pcre/pcrelib/pcre_jit_compile.c chars[2] = chars[offsets[2] << 1]; offsets 3716 ext/pcre/pcrelib/pcre_jit_compile.c chars[3] = chars[(offsets[2] << 1) + 1]; offsets 3718 ext/pcre/pcrelib/pcre_jit_compile.c if (offsets[1] >= 0) offsets 3720 ext/pcre/pcrelib/pcre_jit_compile.c chars[4] = chars[offsets[1] << 1]; offsets 3721 ext/pcre/pcrelib/pcre_jit_compile.c chars[5] = chars[(offsets[1] << 1) + 1]; offsets 3747 ext/pcre/pcrelib/pcre_jit_compile.c SLJIT_ASSERT(range_right >= 0 || offsets[0] >= 0); offsets 3766 ext/pcre/pcrelib/pcre_jit_compile.c if (offsets[0] >= 0) offsets 3768 ext/pcre/pcrelib/pcre_jit_compile.c OP1(MOV_UCHAR, TMP1, 0, SLJIT_MEM1(STR_PTR), IN_UCHARS(offsets[0])); offsets 3769 ext/pcre/pcrelib/pcre_jit_compile.c if (offsets[1] >= 0) offsets 3770 ext/pcre/pcrelib/pcre_jit_compile.c OP1(MOV_UCHAR, TMP2, 0, SLJIT_MEM1(STR_PTR), IN_UCHARS(offsets[1])); offsets 3776 ext/pcre/pcrelib/pcre_jit_compile.c if (offsets[2] >= 0) offsets 3777 ext/pcre/pcrelib/pcre_jit_compile.c OP1(MOV_UCHAR, TMP1, 0, SLJIT_MEM1(STR_PTR), IN_UCHARS(offsets[2] - 1)); offsets 3779 ext/pcre/pcrelib/pcre_jit_compile.c if (offsets[1] >= 0) offsets 3786 ext/pcre/pcrelib/pcre_jit_compile.c if (offsets[2] >= 0) offsets 6362 ext/pcre/pcrelib/pcre_jit_compile.c int *offset_vector = arguments->offsets; offsets 10412 ext/pcre/pcrelib/pcre_jit_compile.c int length, int start_offset, int options, int *offsets, int offset_count) offsets 10445 ext/pcre/pcrelib/pcre_jit_compile.c arguments.offsets = offsets; offsets 10487 ext/pcre/pcrelib/pcre_jit_compile.c int *offsets, int offset_count, pcre_jit_stack *stack) offsets 10492 ext/pcre/pcrelib/pcre_jit_compile.c int *offsets, int offset_count, pcre16_jit_stack *stack) offsets 10497 ext/pcre/pcrelib/pcre_jit_compile.c int *offsets, int offset_count, pcre32_jit_stack *stack) offsets 10538 ext/pcre/pcrelib/pcre_jit_compile.c arguments.offsets = offsets; offsets 645 ext/pcre/php_pcre.c int *offsets; /* Array of subpattern offsets */ offsets 724 ext/pcre/php_pcre.c offsets = (int *)do_alloca(size_offsets * sizeof(int), use_heap); offsets 726 ext/pcre/php_pcre.c offsets = (int *)safe_emalloc(size_offsets, sizeof(int), 0); offsets 728 ext/pcre/php_pcre.c memset(offsets, 0, size_offsets*sizeof(int)); offsets 743 ext/pcre/php_pcre.c exoptions|g_notempty, offsets, size_offsets); offsets 761 ext/pcre/php_pcre.c if ((offsets[1] - offsets[0] < 0) || pcre_get_substring_list(subject, offsets, count, &stringlist) < 0) { offsets 766 ext/pcre/php_pcre.c free_alloca(offsets, use_heap); offsets 768 ext/pcre/php_pcre.c efree(offsets); offsets 781 ext/pcre/php_pcre.c offsets[(i<<1)+1] - offsets[i<<1], offsets[i<<1], NULL); offsets 786 ext/pcre/php_pcre.c offsets[(i<<1)+1] - offsets[i<<1]); offsets 815 ext/pcre/php_pcre.c offsets[(i<<1)+1] - offsets[i<<1], offsets[i<<1], subpat_names[i]); offsets 821 ext/pcre/php_pcre.c offsets[(i<<1)+1] - offsets[i<<1]); offsets 824 ext/pcre/php_pcre.c offsets[(i<<1)+1] - offsets[i<<1]); offsets 831 ext/pcre/php_pcre.c offsets[(i<<1)+1] - offsets[i<<1], offsets[i<<1], NULL); offsets 836 ext/pcre/php_pcre.c offsets[(i<<1)+1] - offsets[i<<1]); offsets 853 ext/pcre/php_pcre.c offsets[(i<<1)+1] - offsets[i<<1], offsets 854 ext/pcre/php_pcre.c offsets[i<<1], subpat_names[i]); offsets 860 ext/pcre/php_pcre.c offsets[(i<<1)+1] - offsets[i<<1]); offsets 863 ext/pcre/php_pcre.c offsets[(i<<1)+1] - offsets[i<<1]); offsets 870 ext/pcre/php_pcre.c offsets[(i<<1)+1] - offsets[i<<1], offsets 871 ext/pcre/php_pcre.c offsets[i<<1], NULL); offsets 876 ext/pcre/php_pcre.c offsets[(i<<1)+1] - offsets[i<<1]); offsets 896 ext/pcre/php_pcre.c offsets[0] = (int)start_offset; offsets 897 ext/pcre/php_pcre.c offsets[1] = (int)(start_offset + unit_len); offsets 909 ext/pcre/php_pcre.c g_notempty = (offsets[1] == offsets[0])? PCRE_NOTEMPTY_ATSTART | PCRE_ANCHORED : 0; offsets 912 ext/pcre/php_pcre.c start_offset = offsets[1]; offsets 939 ext/pcre/php_pcre.c free_alloca(offsets, use_heap); offsets 941 ext/pcre/php_pcre.c efree(offsets); offsets 1013 ext/pcre/php_pcre.c static zend_string *preg_do_repl_func(zval *function, char *subject, int *offsets, char **subpat_names, int count, unsigned char *mark) offsets 1024 ext/pcre/php_pcre.c add_assoc_stringl(&args[0], subpat_names[i], &subject[offsets[i<<1]] , offsets[(i<<1)+1] - offsets[i<<1]); offsets 1026 ext/pcre/php_pcre.c add_next_index_stringl(&args[0], &subject[offsets[i<<1]], offsets[(i<<1)+1] - offsets[i<<1]); offsets 1030 ext/pcre/php_pcre.c add_next_index_stringl(&args[0], &subject[offsets[i<<1]], offsets[(i<<1)+1] - offsets[i<<1]); offsets 1045 ext/pcre/php_pcre.c result_str = zend_string_init(&subject[offsets[0]], offsets[1] - offsets[0], 0); offsets 1085 ext/pcre/php_pcre.c int *offsets; /* Array of subpattern offsets */ offsets 1133 ext/pcre/php_pcre.c offsets = (int *)do_alloca(size_offsets * sizeof(int), use_heap); offsets 1135 ext/pcre/php_pcre.c offsets = (int *)safe_emalloc(size_offsets, sizeof(int), 0); offsets 1166 ext/pcre/php_pcre.c exoptions|g_notempty, offsets, size_offsets); offsets 1180 ext/pcre/php_pcre.c if (EXPECTED(count > 0 && (offsets[1] - offsets[0] >= 0) && limit)) { offsets 1186 ext/pcre/php_pcre.c match = subject + offsets[0]; offsets 1188 ext/pcre/php_pcre.c new_len = result_len + offsets[0] - start_offset; /* part before the match */ offsets 1205 ext/pcre/php_pcre.c new_len += offsets[(backref<<1)+1] - offsets[backref<<1]; offsets 1241 ext/pcre/php_pcre.c match_len = offsets[(backref<<1)+1] - offsets[backref<<1]; offsets 1242 ext/pcre/php_pcre.c memcpy(walkbuf, subject + offsets[backref<<1], match_len); offsets 1256 ext/pcre/php_pcre.c eval_result = preg_do_repl_func(replace_val, subject, offsets, subpat_names, count, mark); offsets 1291 ext/pcre/php_pcre.c offsets[0] = start_offset; offsets 1292 ext/pcre/php_pcre.c offsets[1] = start_offset + unit_len; offsets 1329 ext/pcre/php_pcre.c g_notempty = (offsets[1] == offsets[0])? PCRE_NOTEMPTY_ATSTART | PCRE_ANCHORED : 0; offsets 1332 ext/pcre/php_pcre.c start_offset = offsets[1]; offsets 1336 ext/pcre/php_pcre.c free_alloca(offsets, use_heap); offsets 1338 ext/pcre/php_pcre.c efree(offsets); offsets 1735 ext/pcre/php_pcre.c int *offsets; /* Array of subpattern offsets */ offsets 1773 ext/pcre/php_pcre.c offsets = (int *)do_alloca(size_offsets * sizeof(int), use_heap); offsets 1775 ext/pcre/php_pcre.c offsets = (int *)safe_emalloc(size_offsets, sizeof(int), 0); offsets 1788 ext/pcre/php_pcre.c exoptions|g_notempty, offsets, size_offsets); offsets 1800 ext/pcre/php_pcre.c if (count > 0 && (offsets[1] - offsets[0] >= 0)) { offsets 1801 ext/pcre/php_pcre.c if (!no_empty || &subject[offsets[0]] != last_match) { offsets 1805 ext/pcre/php_pcre.c add_offset_pair(return_value, last_match, (int)(&subject[offsets[0]]-last_match), next_offset, NULL); offsets 1808 ext/pcre/php_pcre.c ZVAL_STRINGL(&tmp, last_match, &subject[offsets[0]]-last_match); offsets 1817 ext/pcre/php_pcre.c last_match = &subject[offsets[1]]; offsets 1818 ext/pcre/php_pcre.c next_offset = offsets[1]; offsets 1823 ext/pcre/php_pcre.c match_len = offsets[(i<<1)+1] - offsets[i<<1]; offsets 1827 ext/pcre/php_pcre.c add_offset_pair(return_value, &subject[offsets[i<<1]], match_len, offsets[i<<1], NULL); offsets 1829 ext/pcre/php_pcre.c ZVAL_STRINGL(&tmp, &subject[offsets[i<<1]], match_len); offsets 1841 ext/pcre/php_pcre.c offsets[0] = start_offset; offsets 1842 ext/pcre/php_pcre.c offsets[1] = start_offset + calculate_unit_length(pce, subject + start_offset); offsets 1855 ext/pcre/php_pcre.c g_notempty = (offsets[1] == offsets[0])? PCRE_NOTEMPTY_ATSTART | PCRE_ANCHORED : 0; offsets 1858 ext/pcre/php_pcre.c start_offset = offsets[1]; offsets 1879 ext/pcre/php_pcre.c free_alloca(offsets, use_heap); offsets 1881 ext/pcre/php_pcre.c efree(offsets); offsets 2022 ext/pcre/php_pcre.c int *offsets; /* Array of subpattern offsets */ offsets 2046 ext/pcre/php_pcre.c offsets = (int *)do_alloca(size_offsets * sizeof(int), use_heap); offsets 2048 ext/pcre/php_pcre.c offsets = (int *)safe_emalloc(size_offsets, sizeof(int), 0); offsets 2063 ext/pcre/php_pcre.c 0, offsets, size_offsets); offsets 2094 ext/pcre/php_pcre.c free_alloca(offsets, use_heap); offsets 2096 ext/pcre/php_pcre.c efree(offsets);