/PHP-5.3/ext/standard/ |
H A D | soundex.c | 32 int i, _small, str_len, code, last; in PHP_FUNCTION() local 63 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) { in PHP_FUNCTION() 66 if (str_len == 0) { in PHP_FUNCTION() 72 for (i = 0, _small = 0; i < str_len && _small < 4; i++) { in PHP_FUNCTION()
|
H A D | string.c | 1063 int str_len; in php_implode() local 1443 int str_len; local 2111 int str_len; local 2152 int str_len; local 2166 l = str_len; 2594 int str_len; local 2645 int str_len; local 3785 int str_len; local 4051 int str_len; local 5190 RETURN_STRINGL(erealloc(str, str_len + 1), str_len, 0); [all …]
|
H A D | base64.c | 224 int str_len, ret_length; in PHP_FUNCTION() local 226 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) { in PHP_FUNCTION() 229 result = php_base64_encode((unsigned char*)str, str_len, &ret_length); in PHP_FUNCTION() 245 int str_len, ret_length; in PHP_FUNCTION() local 247 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|b", &str, &str_len, &strict) == FAILURE) { in PHP_FUNCTION() 250 result = php_base64_decode_ex((unsigned char*)str, str_len, &ret_length, strict); in PHP_FUNCTION()
|
H A D | iptc.c | 309 int str_len; in PHP_FUNCTION() local 312 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) != SUCCESS) { in PHP_FUNCTION() 318 while (inx < str_len) { /* find 1st tag */ in PHP_FUNCTION() 326 while (inx < str_len) { in PHP_FUNCTION() 331 if ((inx + 4) >= str_len) in PHP_FUNCTION() 338 if((inx+6) >= str_len) { in PHP_FUNCTION() 349 if ((len < 0) || (len > str_len) || (inx + len) > str_len) { in PHP_FUNCTION()
|
H A D | quot_print.c | 263 int str_len; in PHP_FUNCTION() local 266 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) != SUCCESS) { in PHP_FUNCTION() 270 if (!str_len) { in PHP_FUNCTION() 274 new_str = (char *)php_quot_print_encode((unsigned char *)str, (size_t)str_len, &new_str_len); in PHP_FUNCTION()
|
H A D | metaphone.c | 36 int str_len; in PHP_FUNCTION() local 39 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &str, &str_len, in PHP_FUNCTION() 44 if (metaphone((unsigned char *)str, str_len, phones, &result, 1) == 0) { in PHP_FUNCTION()
|
H A D | dir.c | 291 int ret, str_len; in PHP_FUNCTION() local 293 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) { in PHP_FUNCTION() 322 int ret, str_len; in PHP_FUNCTION() local 324 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) { in PHP_FUNCTION() 328 if (strlen(str) != str_len) { in PHP_FUNCTION()
|
H A D | mail.c | 81 int j, str_len; in PHP_FUNCTION() local 83 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) { in PHP_FUNCTION() 87 for (j = 0; j < str_len; j++) { in PHP_FUNCTION()
|
H A D | crypt.c | 154 int str_len, salt_in_len = 0; in PHP_FUNCTION() local 162 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &str, &str_len, &salt_in, &salt_in_len… in PHP_FUNCTION()
|
H A D | info.h | 71 PHPAPI void php_info_html_esc_write(char *string, int str_len TSRMLS_DC);
|
H A D | php_string.h | 132 …int needle_len, char *str, int str_len, int *_new_length, int case_sensitivity, int *replace_count… 134 int needle_len, char *str, int str_len, int *_new_length);
|
/PHP-5.3/ext/intl/grapheme/ |
H A D | grapheme_util.c | 58 dest_len = (*str_len) + ( *str_len / 10 ); in grapheme_intl_case_fold() 84 *str_len = dest_len; in grapheme_intl_case_fold() 99 } else if (l > str_len) { in grapheme_substr_ascii() 100 l = str_len; in grapheme_substr_ascii() 103 l = str_len; in grapheme_substr_ascii() 106 if (f > str_len || (f < 0 && -f > str_len)) { in grapheme_substr_ascii() 118 f = str_len + f; in grapheme_substr_ascii() 129 l = (str_len - f) + l; in grapheme_substr_ascii() 135 if (f >= str_len) { in grapheme_substr_ascii() 139 if ((f + l) > str_len) { in grapheme_substr_ascii() [all …]
|
H A D | grapheme_string.c | 403 int str_len, sub_str_len, ustr_len; in PHP_FUNCTION() local 421 if ( OUTSIDE_STRING(lstart, str_len) ) { in PHP_FUNCTION() 433 if ( grapheme_ascii_check(str, str_len) >= 0 ) { in PHP_FUNCTION() 702 U8_FWD_N(pstr, ret_pos, str_len, pos - prev_pos); in grapheme_extract_charcount_iter() 731 U8_FWD_N(pstr, ret_pos, str_len, pos - prev_pos); in grapheme_extract_bytecount_iter() 771 U8_FWD_N(pstr, ret_pos, str_len, pos); in grapheme_extract_count_iter() 793 int str_len, ustr_len; in PHP_FUNCTION() local 854 unsigned char *str_end = str + str_len; in PHP_FUNCTION() 867 str_len -= (pstr - str); in PHP_FUNCTION() 873 if ( -1 != grapheme_ascii_check(pstr, size + 1 < str_len ? size + 1 : str_len ) ) { in PHP_FUNCTION() [all …]
|
H A D | grapheme_util.h | 27 grapheme_substr_ascii(char *str, int32_t str_len, int32_t f, int32_t l, int argc, char **sub_str, i…
|
/PHP-5.3/ext/intl/formatter/ |
H A D | formatter_parse.c | 43 int str_len; in PHP_FUNCTION() local 54 &object, NumberFormatter_ce_ptr, &str, &str_len, &type, &zposition ) == FAILURE ) in PHP_FUNCTION() 66 intl_convert_utf8_to_utf16(&sstr, &sstr_len, str, str_len, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION() 131 int str_len; in PHP_FUNCTION() local 139 &object, NumberFormatter_ce_ptr, &str, &str_len, &zcurrency, &zposition ) == FAILURE ) in PHP_FUNCTION() 151 intl_convert_utf8_to_utf16(&sstr, &sstr_len, str, str_len, &INTL_DATA_ERROR_CODE(nfo)); in PHP_FUNCTION()
|
/PHP-5.3/ext/filter/ |
H A D | logical_filters.c | 72 const char *end = str + str_len; in php_filter_parse_int() 118 const char *end = str + str_len; in php_filter_parse_octal() 141 const char *end = str + str_len; in php_filter_parse_hex() 555 const char *end = str + str_len; in _php_filter_validate_ipv4() 598 if (!memchr(str, ':', str_len)) { in _php_filter_validate_ipv6() 603 ipv4 = memchr(str, '.', str_len); in _php_filter_validate_ipv6() 609 if (!_php_filter_validate_ipv4(ipv4, (str_len - (ipv4 - str)), ip4elm)) { in _php_filter_validate_ipv6() 613 str_len = ipv4 - str; /* length excluding ipv4 */ in _php_filter_validate_ipv6() 614 if (str_len < 2) { in _php_filter_validate_ipv6() 620 str_len--; in _php_filter_validate_ipv6() [all …]
|
/PHP-5.3/sapi/apache2filter/ |
H A D | apache_config.c | 127 uint str_len; in merge_php_config() local 135 zend_hash_get_current_key_ex(&d->config, &str, &str_len, in merge_php_config() 140 if (zend_hash_find(&n->config, str, str_len, (void **) &pe) == SUCCESS) { in merge_php_config() 143 zend_hash_update(&n->config, str, str_len, data, sizeof(*data), NULL); in merge_php_config() 166 uint str_len; in apply_config() local 170 zend_hash_get_current_key_ex(&d->config, &str, &str_len, NULL, 0, in apply_config() 175 …if (zend_alter_ini_entry(str, str_len, data->value, data->value_len, data->status, data->htaccess?… in apply_config()
|
/PHP-5.3/sapi/apache2handler/ |
H A D | apache_config.c | 145 uint str_len; in merge_php_config() local 157 zend_hash_get_current_key_ex(&d->config, &str, &str_len, in merge_php_config() 162 if (zend_hash_find(&n->config, str, str_len, (void **) &pe) == SUCCESS) { in merge_php_config() 166 zend_hash_update(&n->config, str, str_len, data, sizeof(*data), NULL); in merge_php_config() 188 uint str_len; in apply_config() local 192 zend_hash_get_current_key_ex(&d->config, &str, &str_len, NULL, 0, in apply_config() 197 …if (zend_alter_ini_entry(str, str_len, data->value, data->value_len, data->status, data->htaccess?… in apply_config()
|
/PHP-5.3/ext/standard/tests/filters/ |
H A D | bug22538.phpt | 20 $str_len = strlen($str); 22 while (($cnt -= $str_len) > 0) { 25 $cnt = $size - ($str_len + $cnt);
|
/PHP-5.3/ext/json/ |
H A D | json.c | 489 PHP_JSON_API void php_json_decode(zval *return_value, char *str, int str_len, zend_bool assoc, long… in php_json_decode() argument 496 utf16 = (unsigned short *) safe_emalloc((str_len+1), sizeof(unsigned short), 1); in php_json_decode() 498 utf16_len = utf8_to_utf16(utf16, str, str_len); in php_json_decode() 525 if (str_len == 4) { in php_json_decode() 533 } else if (str_len == 5 && !strcasecmp(str, "false")) { in php_json_decode() 537 if ((type = is_numeric_string(str, str_len, &p, &d, 0)) != 0) { in php_json_decode() 585 int str_len; in PHP_FUNCTION() local 589 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|bl", &str, &str_len, &assoc, &depth) == FA… in PHP_FUNCTION() 595 if (!str_len) { in PHP_FUNCTION() 599 php_json_decode(return_value, str, str_len, assoc, depth TSRMLS_CC); in PHP_FUNCTION()
|
H A D | php_json.h | 51 PHP_JSON_API void php_json_decode(zval *return_value, char *str, int str_len, zend_bool assoc, long…
|
/PHP-5.3/ext/recode/ |
H A D | recode.c | 149 int req_len, str_len; in PHP_FUNCTION() local 152 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &req, &req_len, &str, &str_len) == FAIL… in PHP_FUNCTION() 168 recode_buffer_to_buffer(request, str, str_len, &r, &r_len, &r_alen); in PHP_FUNCTION()
|
/PHP-5.3/main/ |
H A D | php.h | 385 #define PHPWRITE(str, str_len) php_body_write((str), (str_len) TSRMLS_CC) argument 392 #define PHPWRITE_H(str, str_len) php_header_write((str), (str_len) TSRMLS_CC) argument
|
/PHP-5.3/ext/intl/collator/ |
H A D | collator_convert.c | 194 int str_len = 0; in collator_convert_zstr_utf16_to_utf8() local 198 intl_convert_utf16_to_utf8( &str, &str_len, in collator_convert_zstr_utf16_to_utf8() 204 ZVAL_STRINGL( utf8_zval, str, str_len, FALSE ); in collator_convert_zstr_utf16_to_utf8()
|
/PHP-5.3/ext/mbstring/ |
H A D | mbstring.c | 2568 string.len = str_len; in PHP_FUNCTION() 2571 len = str_len; in PHP_FUNCTION() 2743 string.len = str_len; in PHP_FUNCTION() 2861 int str_len, new_len; in PHP_FUNCTION() local 2935 int str_len, from_encoding_len; in PHP_FUNCTION() local 2959 int str_len, from_encoding_len; in PHP_FUNCTION() local 3004 int str_len; in PHP_FUNCTION() local 3061 string.len = str_len; in PHP_FUNCTION() 3529 int str_len, encoding_len; in php_mb_numericentity_exec() local 3545 string.len = str_len; in php_mb_numericentity_exec() [all …]
|