/php-src/ext/pcre/pcre2lib/ |
H A D | pcre2_valid_utf.c | 63 PRIV(valid_utf)(PCRE2_SPTR string, PCRE2_SIZE length, PCRE2_SIZE *erroroffset) in PRIV() 94 PRIV(valid_utf)(PCRE2_SPTR string, PCRE2_SIZE length, PCRE2_SIZE *erroroffset) in PRIV() 145 *erroroffset = (PCRE2_SIZE)(p - string); in PRIV() 151 *erroroffset = (PCRE2_SIZE)(p - string); in PRIV() 158 *erroroffset = (PCRE2_SIZE)(p - string); in PRIV() 174 *erroroffset = (PCRE2_SIZE)(p - string) - 1; in PRIV() 312 *erroroffset = (PCRE2_SIZE)(p - string) - ab; in PRIV() 343 *erroroffset = (PCRE2_SIZE)(p - string); in PRIV() 357 *erroroffset = (PCRE2_SIZE)(p - string); in PRIV() 382 *erroroffset = (PCRE2_SIZE)(p - string); in PRIV() [all …]
|
H A D | pcre2.h | 479 #define PCRE2_SIZE size_t macro 662 pcre2_compile(PCRE2_SPTR, PCRE2_SIZE, uint32_t, int *, PCRE2_SIZE *, \ 691 pcre2_dfa_match(const pcre2_code *, PCRE2_SPTR, PCRE2_SIZE, PCRE2_SIZE, \ 694 pcre2_match(const pcre2_code *, PCRE2_SPTR, PCRE2_SIZE, PCRE2_SIZE, \ 717 PCRE2_SIZE *); \ 720 PCRE2_SIZE *); \ 725 PCRE2_SIZE *); \ 728 PCRE2_SIZE *); \ 762 pcre2_substitute(const pcre2_code *, PCRE2_SPTR, PCRE2_SIZE, PCRE2_SIZE, \ 764 PCRE2_SIZE, PCRE2_UCHAR *, PCRE2_SIZE *); [all …]
|
H A D | pcre2_substring.c | 74 PCRE2_UCHAR *buffer, PCRE2_SIZE *sizeptr) in pcre2_substring_copy_byname() 122 uint32_t stringnumber, PCRE2_UCHAR *buffer, PCRE2_SIZE *sizeptr) in pcre2_substring_copy_bynumber() 125 PCRE2_SIZE size; in pcre2_substring_copy_bynumber() 213 PCRE2_SIZE size; in pcre2_substring_get_bynumber() 269 PCRE2_SPTR stringname, PCRE2_SIZE *sizeptr) in pcre2_substring_length_byname() 317 uint32_t stringnumber, PCRE2_SIZE *sizeptr) in pcre2_substring_length_bynumber() 319 PCRE2_SIZE left, right; in pcre2_substring_length_bynumber() 376 PCRE2_SIZE **lengthsptr) in pcre2_substring_list_get() 379 PCRE2_SIZE size; in pcre2_substring_list_get() 380 PCRE2_SIZE *lensp; in pcre2_substring_list_get() [all …]
|
H A D | pcre2_match_data.c | 64 offsetof(pcre2_match_data, ovector) + 2*oveccount*sizeof(PCRE2_SIZE), in pcre2_match_data_create() 130 PCRE2_EXP_DEFN PCRE2_SIZE * PCRE2_CALL_CONVENTION 154 PCRE2_EXP_DEFN PCRE2_SIZE PCRE2_CALL_CONVENTION 166 PCRE2_EXP_DEFN PCRE2_SIZE PCRE2_CALL_CONVENTION 170 2 * (match_data->oveccount) * sizeof(PCRE2_SIZE); in pcre2_get_match_data_size() 179 PCRE2_EXP_DEFN PCRE2_SIZE PCRE2_CALL_CONVENTION
|
H A D | pcre2_chkdint.c | 66 PRIV(ckd_smul)(PCRE2_SIZE *r, int a, int b) in PRIV() 69 PCRE2_SIZE m; in PRIV() 85 *r = (PCRE2_SIZE)m; in PRIV()
|
H A D | pcre2_intmodedep.h | 570 PCRE2_SIZE max_pattern_length; 571 PCRE2_SIZE max_pattern_compiled_length; 591 PCRE2_SIZE offset_limit; 615 #define CODE_BLOCKSIZE_TYPE PCRE2_SIZE 662 PCRE2_SIZE heapframes_size; /* Malloc-ed size */ 663 PCRE2_SIZE subject_length; /* Subject length */ 733 PCRE2_SIZE workspace_size; /* Size of workspace */ 734 PCRE2_SIZE small_ref_offset[10]; /* Offsets for \1 to \9 */ 848 ((sizeof(heapframe) % sizeof(PCRE2_SIZE)) == 0)? (+1):(-1)]; 876 PCRE2_SIZE start_offset; /* The start offset value */ [all …]
|
H A D | pcre2_error.c | 301 pcre2_get_error_message(int enumber, PCRE2_UCHAR *buffer, PCRE2_SIZE size) in pcre2_get_error_message() 304 PCRE2_SIZE i; in pcre2_get_error_message()
|
H A D | pcre2_string_utils.c | 208 PCRE2_SIZE 211 PCRE2_SIZE c = 0; in PRIV() 228 PCRE2_SIZE
|
H A D | pcre2_substitute.c | 221 PCRE2_SIZE start_offset, uint32_t options, pcre2_match_data *match_data, in pcre2_substitute() 223 PCRE2_UCHAR *buffer, PCRE2_SIZE *blength) in pcre2_substitute() 244 PCRE2_SIZE extra_needed = 0; in pcre2_substitute() 245 PCRE2_SIZE buff_offset, buff_length, lengthleft, fraglength; in pcre2_substitute() 246 PCRE2_SIZE *ovector; in pcre2_substitute() 247 PCRE2_SIZE ovecsave[3]; in pcre2_substitute() 312 + 2*pairs*sizeof(PCRE2_SIZE)); in pcre2_substitute() 403 PCRE2_SIZE save_start; in pcre2_substitute() 542 PCRE2_SIZE sublength; in pcre2_substitute() 931 PCRE2_SIZE oldlength = ovector[1] - ovector[0]; in pcre2_substitute() [all …]
|
H A D | pcre2_convert.c | 124 convert_posix(uint32_t pattype, PCRE2_SPTR pattern, PCRE2_SIZE plength, in convert_posix() 125 BOOL utf, PCRE2_UCHAR *use_buffer, PCRE2_SIZE use_length, in convert_posix() 133 PCRE2_SIZE convlength = 0; in convert_posix() 371 PCRE2_SIZE output_size; /* size of the output */ 401 convert_glob_write_str(pcre2_output_context *out, PCRE2_SIZE length) in convert_glob_write_str() 406 PCRE2_SIZE output_size = out->output_size; in convert_glob_write_str() 794 convert_glob(uint32_t options, PCRE2_SPTR pattern, PCRE2_SIZE plength, in convert_glob() 795 BOOL utf, PCRE2_UCHAR *use_buffer, PCRE2_SIZE use_length, in convert_glob() 1065 PCRE2_UCHAR **buffptr, PCRE2_SIZE *bufflenptr, in pcre2_pattern_convert() 1071 PCRE2_SIZE use_length = DUMMY_BUFFER_SIZE; in pcre2_pattern_convert() [all …]
|
H A D | pcre2_serialize.c | 63 (sizeof(PCRE2_UCHAR) | ((sizeof(void*)) << 8) | ((sizeof(PCRE2_SIZE)) << 16)) 73 uint8_t **serialized_bytes, PCRE2_SIZE *serialized_size, in pcre2_serialize_encode() 79 PCRE2_SIZE total_size; in pcre2_serialize_encode() 192 tables = memctl->malloc(TABLES_LENGTH + sizeof(PCRE2_SIZE), memctl->memory_data); in pcre2_serialize_decode() 196 *(PCRE2_SIZE *)(tables + TABLES_LENGTH) = number_of_codes; in pcre2_serialize_decode()
|
H A D | pcre2_dfa_match.c | 357 PCRE2_SIZE *lengthptr) in do_callout_dfa() 362 (PCRE2_SIZE)PRIV(OP_lengths)[OP_CALLOUT] : in do_callout_dfa() 528 PCRE2_SIZE start_offset, in internal_dfa_match() 529 PCRE2_SIZE *offsets, in internal_dfa_match() 2797 PCRE2_SIZE *local_offsets; in internal_dfa_match() 2848 PCRE2_SIZE callout_length; in internal_dfa_match() 2895 PCRE2_SIZE *local_offsets; in internal_dfa_match() 2942 PCRE2_SIZE *local_offsets; in internal_dfa_match() 3041 PCRE2_SIZE *local_offsets; in internal_dfa_match() 3143 PCRE2_SIZE *local_offsets; in internal_dfa_match() [all …]
|
H A D | pcre2_jit_match.c | 91 pcre2_jit_match(const pcre2_code *code, PCRE2_SPTR subject, PCRE2_SIZE length, in pcre2_jit_match() 92 PCRE2_SIZE start_offset, uint32_t options, pcre2_match_data *match_data, in pcre2_jit_match()
|
H A D | pcre2_compile.c | 102 { s = ((PCRE2_SIZE)p[0] << 32) | (PCRE2_SIZE)p[1]; p += 2; } 104 { s = ((PCRE2_SIZE)p[1] << 32) | (PCRE2_SIZE)p[2]; p += 2; } 106 { s = ((PCRE2_SIZE)p[1] << 32) | (PCRE2_SIZE)p[2]; } 935 PCRE2_SIZE offset; in show_parsed() 1202 PCRE2_SIZE* ref_count; in pcre2_code_copy() 1236 PCRE2_SIZE* ref_count; in pcre2_code_copy_with_tables() 2874 PCRE2_SIZE offset; in parse_regex() 8398 PCRE2_SIZE length; in compile_regex() 9452 PCRE2_SIZE offset; in get_branchlength() 9876 PCRE2_SIZE offset; in set_lookbehind_lengths() [all …]
|
H A D | pcre2_context.c | 350 pcre2_set_max_pattern_length(pcre2_compile_context *ccontext, PCRE2_SIZE length) in pcre2_set_max_pattern_length() 357 pcre2_set_max_pattern_compiled_length(pcre2_compile_context *ccontext, PCRE2_SIZE length) in pcre2_set_max_pattern_compiled_length() 456 pcre2_set_offset_limit(pcre2_match_context *mcontext, PCRE2_SIZE limit) in pcre2_set_offset_limit()
|
H A D | pcre2_match.c | 276 PCRE2_SIZE save0, save1; in do_callout() 277 PCRE2_SIZE *callout_ovector; in do_callout() 362 PCRE2_SIZE *lengthptr) in match_ref() 365 PCRE2_SIZE length; in match_ref() 671 PCRE2_SIZE newsize; in match() 5080 PCRE2_SIZE slength; in match() 5101 PCRE2_SIZE slength; in match() 5128 PCRE2_SIZE slength; in match() 5179 PCRE2_SIZE slength; in match() 6581 PCRE2_SIZE frame_size; in pcre2_match() [all …]
|
H A D | pcre2_internal.h | 2061 extern PCRE2_SIZE _pcre2_strcpy_c8(PCRE2_UCHAR *, const char *); 2062 extern PCRE2_SIZE _pcre2_strlen(PCRE2_SPTR); 2066 extern int _pcre2_valid_utf(PCRE2_SPTR, PCRE2_SIZE, PCRE2_SIZE *); 2080 extern BOOL PRIV(ckd_smul)(PCRE2_SIZE *, int, int);
|
H A D | pcre2_pattern_info.c | 169 re->top_bracket * 2 * sizeof(PCRE2_SIZE); in pcre2_pattern_info()
|
H A D | pcre2_jit_compile.c | 3494 SLJIT_IMM, SLJIT_OFFSETOF(pcre2_match_data, ovector) - sizeof(PCRE2_SIZE)); in copy_ovector() 3524 OP2(SLJIT_ADD, SLJIT_R2, 0, SLJIT_R2, 0, SLJIT_IMM, sizeof(PCRE2_SIZE)); in copy_ovector() 3531 SLJIT_ASSERT(sizeof(PCRE2_SIZE) == 4 || sizeof(PCRE2_SIZE) == 8); in copy_ovector() 3532 OP1(((sizeof(PCRE2_SIZE) == 4) ? SLJIT_MOV_U32 : SLJIT_MOV), SLJIT_MEM1(SLJIT_R2), 0, SLJIT_S1, 0); in copy_ovector() 3591 mov_opcode = (sizeof(PCRE2_SIZE) == 4) ? SLJIT_MOV_U32 : SLJIT_MOV; in return_with_partial_match() 9899 PCRE2_SIZE *ovector; in do_callout_jit() 9905 SLJIT_COMPILE_ASSERT(sizeof (PCRE2_SIZE) <= sizeof (sljit_sw), pcre2_size_must_be_lower_than_sljit_… in do_callout_jit() 9908 ovector = (PCRE2_SIZE*)(callout_block + 1); in do_callout_jit() 9937 ovector[0] = (PCRE2_SIZE)(jit_ovector[0] - begin); in do_callout_jit() 9938 ovector[1] = (PCRE2_SIZE)(jit_ovector[1] - begin); in do_callout_jit() [all …]
|
/php-src/ext/pcre/ |
H A D | php_pcre.c | 178 static void *php_pcre_malloc(PCRE2_SIZE size, void *data) in php_pcre_malloc() 188 static void *php_pcre_emalloc(PCRE2_SIZE size, void *data) in php_pcre_emalloc() 582 PCRE2_SIZE erroffset; in pcre_get_compiled_regex_cache_ex() 954 zval *val, const char *subject, PCRE2_SIZE start_offset, PCRE2_SIZE end_offset) { in populate_match_value_str() 959 zval *val, const char *subject, PCRE2_SIZE start_offset, PCRE2_SIZE end_offset, in populate_match_value() 988 HashTable *const result, const char *subject, PCRE2_SIZE start_offset, PCRE2_SIZE end_offset, in add_offset_pair() 1135 zend_string *subject_str, PCRE2_SIZE start_offset) { in is_known_valid_utf8() 1170 PCRE2_SIZE start_offset2, orig_start_offset; in php_pcre_match_impl() 1208 if ((PCRE2_SIZE)-start_offset <= subject_len) { in php_pcre_match_impl() 1214 start_offset2 = (PCRE2_SIZE)start_offset; in php_pcre_match_impl() [all …]
|
/php-src/ext/opcache/ |
H A D | zend_accelerator_blacklist.c | 78 PCRE2_SIZE pcre_error_offset; in zend_accel_blacklist_update_regexp()
|
/php-src/ext/mbstring/ |
H A D | mbstring.c | 511 PCRE2_SIZE err_offset; in _php_mb_compile_regex()
|