Lines Matching refs:size_t

75 static void php_mb_gpc_get_detect_order(const zend_encoding ***list, size_t *list_size);
91 size_t list_size;
265 static size_t count_commas(const char *p, const char *end) { in count_commas()
266 size_t count = 0; in count_commas()
278 static zend_result php_mb_parse_encoding_list(const char *value, size_t value_length, in php_mb_parse_encoding_list()
279 const mbfl_encoding ***return_list, size_t *return_size, bool persistent, uint32_t arg_num, in php_mb_parse_encoding_list()
288 size_t n, size; in php_mb_parse_encoding_list()
324 const size_t identify_list_size = MBSTRG(default_detect_order_list_size); in php_mb_parse_encoding_list()
325 size_t i; in php_mb_parse_encoding_list()
369 size_t *return_size, uint32_t arg_num) in php_mb_parse_encoding_array()
372 size_t size = zend_hash_num_elements(target_hash) + MBSTRG(default_detect_order_list_size); in php_mb_parse_encoding_array()
376 size_t n = 0; in php_mb_parse_encoding_array()
388 const size_t identify_list_size = MBSTRG(default_detect_order_list_size); in php_mb_parse_encoding_array()
389 size_t j; in php_mb_parse_encoding_array()
434 …ncoding_detector(const unsigned char *arg_string, size_t arg_length, const zend_encoding **list, s… in php_mb_zend_encoding_detector()
449 static size_t php_mb_zend_encoding_converter(unsigned char **to, size_t *to_length, const unsigned … in php_mb_zend_encoding_converter()
463 return (size_t) -1; in php_mb_zend_encoding_converter()
470 size_t loc = mbfl_buffer_converter_feed(convd, &string); in php_mb_zend_encoding_converter()
476 return (size_t)-1; in php_mb_zend_encoding_converter()
487 …ng_list_parser(const char *encoding_list, size_t encoding_list_len, const zend_encoding ***return_… in php_mb_zend_encoding_list_parser()
537 static int _php_mb_match_regex(void *opaque, const char *str, size_t str_len) in _php_mb_match_regex()
562 …lt_detect_order_list(enum mbfl_no_language lang, enum mbfl_no_encoding **plist, size_t *plist_size) in php_mb_nls_get_default_detect_order_list()
564 size_t i; in php_mb_nls_get_default_detect_order_list()
580 static char *php_mb_rfc1867_substring_conf(const zend_encoding *encoding, char *start, size_t len, … in php_mb_rfc1867_substring_conf()
584 size_t i; in php_mb_rfc1867_substring_conf()
590 size_t j = php_mb_mbchar_bytes(start+i, (const mbfl_encoding *)encoding); in php_mb_rfc1867_substring_conf()
672 const size_t filename_len = strlen(filename); in php_mb_rfc1867_basename()
719 size_t size; in PHP_INI_MH()
743 static int _php_mb_ini_mbstring_http_input_set(const char *new_value, size_t new_value_length) { in _php_mb_ini_mbstring_http_input_set()
745 size_t size; in _php_mb_ini_mbstring_http_input_set()
806 static int _php_mb_ini_mbstring_internal_encoding_set(const char *new_value, size_t new_value_lengt… in _php_mb_ini_mbstring_internal_encoding_set()
1231 size_t name_len; in PHP_FUNCTION()
1261 size_t type_len = 0, n; in PHP_FUNCTION()
1295 for (size_t i = 0; i < n; i++, entry++) { in PHP_FUNCTION()
1310 for (size_t i = 0; i < n; i++, entry++) { in PHP_FUNCTION()
1338 size_t name_len; in PHP_FUNCTION()
1375 size_t n = MBSTRG(current_detect_order_list_size); in PHP_FUNCTION()
1378 for (size_t i = 0; i < n; i++) { in PHP_FUNCTION()
1384 size_t size; in PHP_FUNCTION()
1489 size_t name_len; in PHP_FUNCTION()
1516 size_t encstr_len; in PHP_FUNCTION()
1553 size_t arg_string_len; in PHP_FUNCTION()
1560 size_t len; in PHP_FUNCTION()
1663 size_t mb_chunk_length; /* actual chunk length in chars */
1664 size_t split_length; /* split length in chars */
1691 size_t mb_len, chunks, chunk_len; in PHP_FUNCTION()
1729 chunk_len = (size_t)split_length; /* chunk length in bytes */ in PHP_FUNCTION()
1783 .split_length = (size_t)split_length, in PHP_FUNCTION()
1822 static size_t mb_get_strlen(zend_string *string, const mbfl_encoding *encoding) in mb_get_strlen()
1824 size_t len = 0; in mb_get_strlen()
1842 size_t in_len = ZSTR_LEN(string); in mb_get_strlen()
1873 static void handle_strpos_error(size_t error) { in handle_strpos_error()
1914 size_t n = mbfl_strpos(&haystack, &needle, offset, reverse); in PHP_FUNCTION()
1948 size_t n = mbfl_strpos(&haystack, &needle, offset, 1); in PHP_FUNCTION()
1982size_t n = php_mb_stripos(0, (char *)haystack.val, haystack.len, (char *)needle.val, needle.len, o… in PHP_FUNCTION()
2017size_t n = php_mb_stripos(1, (char *)haystack.val, haystack.len, (char *)needle.val, needle.len, o… in PHP_FUNCTION()
2036 size_t n; in php_mb_strstr_variants()
2146 size_t n = mbfl_substr_count(&haystack, &needle); in PHP_FUNCTION()
2162 size_t real_from, real_len; in PHP_FUNCTION()
2163 size_t str_len; in PHP_FUNCTION()
2194 size_t mblen = 0; in PHP_FUNCTION()
2203 real_from = (size_t) from; in PHP_FUNCTION()
2216 real_len = (size_t) len; in PHP_FUNCTION()
2294 static size_t character_width(uint32_t c) in character_width()
2316 static size_t mb_get_strwidth(zend_string *string, const mbfl_encoding *enc) in mb_get_strwidth()
2318 size_t width = 0; in mb_get_strwidth()
2321 size_t in_len = ZSTR_LEN(string); in mb_get_strwidth()
2325 size_t out_len = enc->to_wchar(&in, &in_len, wchar_buf, 128, &state); in mb_get_strwidth()
2360 static zend_string* mb_drop_chars(zend_string *input, const mbfl_encoding *enc, size_t n) in mb_drop_chars()
2372 size_t in_len = ZSTR_LEN(input); in mb_drop_chars()
2379 size_t out_len = enc->to_wchar(&in, &in_len, wchar_buf, 128, &state); in mb_drop_chars()
2395 static zend_string* mb_pick_chars(zend_string *input, const mbfl_encoding *enc, size_t n) in mb_pick_chars()
2399 size_t in_len = ZSTR_LEN(input); in mb_pick_chars()
2406 size_t out_len = enc->to_wchar(&in, &in_len, wchar_buf, 128, &state); in mb_pick_chars()
2420 size_t in_len = ZSTR_LEN(input); in mb_trim_string()
2424 size_t out_len = 0; in mb_trim_string()
2531 size_t str_len = mb_get_strlen(str, enc); in PHP_FUNCTION()
2576 MBSTRING_API zend_string* php_mb_convert_encoding_ex(const char *input, size_t length, const mbfl_e… in php_mb_convert_encoding_ex()
2584 …t_encoding(const char *input, size_t length, const mbfl_encoding *to_encoding, const mbfl_encoding… in php_mb_convert_encoding()
2609 … const mbfl_encoding *to_encoding, const mbfl_encoding **from_encodings, size_t num_from_encodings) in php_mb_convert_encoding_recursive()
2691 static void remove_non_encodings_from_elist(const mbfl_encoding **elist, size_t *size) in remove_non_encodings_from_elist()
2715 size_t num_from_encodings; in PHP_FUNCTION()
2779 int case_mode, const char *str, size_t str_len, size_t *ret_len, in mbstring_convert_case()
2791 size_t str_len, ret_len; in PHP_FUNCTION()
2826 size_t str_len, ret_len; in PHP_FUNCTION()
2854 size_t str_len; in PHP_FUNCTION()
2856 size_t ret_len; in PHP_FUNCTION()
2880 static const mbfl_encoding **duplicate_elist(const mbfl_encoding **elist, size_t size) in duplicate_elist()
2891 size_t str_len; in PHP_FUNCTION()
2899 size_t size; in PHP_FUNCTION()
3001 size_t trans_enc_name_len; in PHP_FUNCTION()
3003 size_t linefeed_len; in PHP_FUNCTION()
3086 size_t in_len = ZSTR_LEN(input); in jp_kana_convert()
3095size_t out_len = encoding->to_wchar(&in, &in_len, wchar_buf + buf_offset, 64 - buf_offset, &state); in jp_kana_convert()
3152 size_t optstr_len; in PHP_FUNCTION()
3362 size_t elistsz; in PHP_FUNCTION()
3519 size_t in_len = ZSTR_LEN(input); in html_numeric_entity_encode()
3526 size_t out_len = encoding->to_wchar(&in, &in_len, wchar_buf, 32, &state); in html_numeric_entity_encode()
3636 size_t in_len = ZSTR_LEN(input); in html_numeric_entity_decode()
3662size_t out_len = encoding->to_wchar(&in, &in_len, wchar_buf + wchar_buf_offset, 127 - wchar_buf_of… in html_numeric_entity_decode()
3840 static int _php_mbstr_parse_mail_headers(HashTable *ht, const char *str, size_t str_len) in _php_mbstr_parse_mail_headers()
3843 size_t icnt; in _php_mbstr_parse_mail_headers()
3847 size_t token_pos = 0; in _php_mbstr_parse_mail_headers()
4004 size_t to_len; in PHP_FUNCTION()
4006 size_t message_len; in PHP_FUNCTION()
4008 size_t subject_len; in PHP_FUNCTION()
4012 size_t n, i; in PHP_FUNCTION()
4172 size_t line_sep_len = strlen(line_sep); in PHP_FUNCTION()
4294 size_t n; in PHP_FUNCTION()
4342 size_t i; in PHP_FUNCTION()
4408 size_t i; in PHP_FUNCTION()
4438 MBSTRING_API int php_mb_check_encoding(const char *input, size_t length, const mbfl_encoding *encod… in php_mb_check_encoding()
4451 size_t out_len = encoding->to_wchar(&in, &length, wchar_buf, 8, &state); in php_mb_check_encoding()
4556 static inline zend_long php_mb_ord(const char *str, size_t str_len, zend_string *enc_name, in php_mb_ord()
4579size_t out_len = enc->to_wchar((unsigned char**)&str, &str_len, wchar_buf, MBSTRING_MIN_WCHAR_BUFS… in php_mb_ord()
4593 size_t str_len; in PHP_FUNCTION()
4718 size_t str_len; in PHP_FUNCTION()
4741 size_t nentries; in php_mb_populate_current_detect_order_list()
4749 size_t i; in php_mb_populate_current_detect_order_list()
4768 MBSTRING_API size_t php_mb_mbchar_bytes(const char *s, const mbfl_encoding *enc) in php_mb_mbchar_bytes()
4784 MBSTRING_API char *php_mb_safe_strrchr(const char *s, unsigned int c, size_t nbytes, const mbfl_enc… in php_mb_safe_strrchr()
4789 if (nbytes == (size_t)-1) { in php_mb_safe_strrchr()
4790 size_t nb = 0; in php_mb_safe_strrchr()
4806 size_t bcnt = nbytes; in php_mb_safe_strrchr()
4807 size_t nbytes_char; in php_mb_safe_strrchr()
4824 MBSTRING_API size_t php_mb_stripos(int mode, const char *old_haystack, size_t old_haystack_len, con… in php_mb_stripos()
4826 size_t n = (size_t) -1; in php_mb_stripos()
4836 size_t len = 0; in php_mb_stripos()
4870 static void php_mb_gpc_get_detect_order(const zend_encoding ***list, size_t *list_size) /* {{{ */ in php_mb_gpc_get_detect_order()