Lines Matching refs:str_len

854 	int str_len, what_len = 0;  in php_do_trim()  local
856 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &str, &str_len, &what, &what_len) == F… in php_do_trim()
860 php_trim(str, str_len, what, what_len, return_value, mode TSRMLS_CC); in php_do_trim()
1103 int str_len = 0, delim_len = 0; in PHP_FUNCTION() local
1107 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", &delim, &delim_len, &str, &str_len, &… in PHP_FUNCTION()
1118 if (str_len == 0) { in PHP_FUNCTION()
1125 ZVAL_STRINGL(&zstr, str, str_len, 0); in PHP_FUNCTION()
1132 add_index_stringl(return_value, 0, str, str_len, 1); in PHP_FUNCTION()
1150 int str_len; in php_implode() local
1168 str_len = slprintf(stmp, sizeof(stmp), "%ld", Z_LVAL_PP(tmp)); in php_implode()
1169 smart_str_appendl(&implstr, stmp, str_len); in php_implode()
1184 str_len = spprintf(&stmp, 0, "%.*G", (int) EG(precision), Z_DVAL_PP(tmp)); in php_implode()
1185 smart_str_appendl(&implstr, stmp, str_len); in php_implode()
1279 int str_len, tok_len = 0; in PHP_FUNCTION() local
1288 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &str, &str_len, &tok, &tok_len) == FAI… in PHP_FUNCTION()
1294 tok_len = str_len; in PHP_FUNCTION()
1300 ZVAL_STRINGL(zv, str, str_len, 1); in PHP_FUNCTION()
1304 BG(strtok_len) = str_len; in PHP_FUNCTION()
1543 int str_len; local
1546 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
1550 ret = estrndup(str, str_len);
1551 ret_len = php_dirname(ret, str_len);
2211 int str_len; local
2213 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|ls", &str, &str_len, &chunklen, &end, &end…
2222 if (chunklen > str_len) {
2224 result_len = endlen + str_len;
2226 memcpy(result, str, str_len);
2227 memcpy(result + str_len, end, endlen);
2232 if (!str_len) {
2236 result = php_chunk_split(str, str_len, end, endlen, chunklen, &result_len);
2252 int str_len; local
2255 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sl|l", &str, &str_len, &f, &l) == FAILURE) {
2260 if ((l < 0 && -l > str_len)) {
2262 } else if (l > str_len) {
2263 l = str_len;
2266 l = str_len;
2269 if (f > str_len) {
2271 } else if (f < 0 && -f > str_len) {
2275 if (l < 0 && (l + str_len - f) < 0) {
2283 f = str_len + f;
2293 l = (str_len - f) + l;
2299 if (f >= str_len) {
2303 if ((f + l) > str_len) {
2304 l = str_len - f;
2669 int str_len; local
2671 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
2716 int str_len; local
2718 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
2722 if (!str_len) {
2726 ZVAL_STRINGL(return_value, str, str_len, 1);
2746 int str_len; local
2748 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
2752 if (!str_len) {
2756 ZVAL_STRINGL(return_value, str, str_len, 1);
2767 int str_len, delims_len = 6; local
2770 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &str, &str_len, &delims, &delims_len) …
2774 if (!str_len) {
2780 ZVAL_STRINGL(return_value, str, str_len, 1);
3157 int str_len, to_len = 0; local
3160 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sZ|s", &str, &str_len, &from, &to, &to_len) …
3170 if (str_len == 0) {
3175 php_strtr_array(return_value, str, str_len, HASH_OF(*from));
3179 ZVAL_STRINGL(return_value, str, str_len, 1);
3197 int str_len; local
3199 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
3203 n = emalloc(str_len+1);
3206 e = str + str_len;
3214 RETVAL_STRINGL(n, str_len, 0);
3348 int str_len, what_len; local
3350 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &str, &str_len, &what, &what_len) == FA…
3354 if (str_len == 0) {
3359 RETURN_STRINGL(str, str_len, 1);
3362 …Z_STRVAL_P(return_value) = php_addcslashes(str, str_len, &Z_STRLEN_P(return_value), 0, what, what_…
3372 int str_len; local
3374 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
3378 if (str_len == 0) {
3383 str_len,
3394 int str_len; local
3396 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
3400 ZVAL_STRINGL(return_value, str, str_len, 1);
3410 int str_len; local
3412 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
3416 ZVAL_STRINGL(return_value, str, str_len, 1);
3701 …char *needle, int needle_len, char *str, int str_len, int *_new_length, int case_sensitivity, int … argument
3709 if (needle_len == str_len) {
3716 memcpy(r, str, str_len);
3728 memcpy(new_str + (r - haystack_dup), str, str_len);
3745 if (str_len < needle_len) {
3778 new_str = safe_emalloc(count, str_len - needle_len, length + 1);
3789 memcpy(e, str, str_len);
3790 e += str_len;
3806 memcpy(e, str, str_len);
3807 e += str_len;
3858 *_new_length = str_len;
3859 new_str = estrndup(str, str_len);
3873 char *needle, int needle_len, char *str, int str_len, int *_new_length) argument
3875 return php_str_to_str_ex(haystack, length, needle, needle_len, str, str_len, _new_length, 1, NULL);
4087 int str_len; local
4089 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &str, &str_len, &max_chars) == FAILURE…
4093 if (str_len == 0) {
4100 heb_str = (char *) emalloc(str_len+1);
4101 target = heb_str+str_len;
4115 …isblank((int)*(tmp+1)) || ispunct((int)*(tmp+1)) || (int)*(tmp+1)=='\n' ) && block_end<str_len-1) {
4160 while (!isheb(*(tmp+1)) && (int)*(tmp+1)!='\n' && block_end < str_len-1) {
4176 } while (block_end < str_len-1);
4179 broken_str = (char *) emalloc(str_len+1);
4180 begin=end=str_len-1;
4238 php_char_to_str(broken_str, str_len,'\n', "<br />\n", 7, return_value);
4242 Z_STRLEN_P(return_value) = str_len;
4273 int str_len; local
4276 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|b", &str, &str_len, &is_xhtml) == FAILURE)…
4281 end = str + str_len;
4302 RETURN_STRINGL(str, str_len, 1);
4308 new_length = str_len + repl_cnt * repl_len;
4312 tmp = target = safe_emalloc(repl_cnt, repl_len, str_len + 1);
4356 int str_len; local
4359 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|Z", &str, &str_len, &allow) == FAILURE) {
4370 buf = estrndup(str, str_len);
4371 retval_len = php_strip_tags_ex(buf, str_len, NULL, allowed_tags, allowed_tags_len, 0);
4891 int str_len = 0, delim_len = 0, enc_len = 0, esc_len = 0; local
4893 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|sss", &str, &str_len, &delim_str, &delim_l…
4902 php_fgetcsv(NULL, delim, enc, esc, str_len, str, return_value TSRMLS_CC);
5345 int str_len, format_len, result, num_args = 0; local
5347 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss*", &str, &str_len, &format, &format_len,
5442 int str_len, char_list_len = 0, word_count = 0; local
5445 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|ls", &str, &str_len, &type, &char_list, &c…
5453 if (!str_len) {
5458 if (!str_len) {
5473 e = str + str_len;
5520 int format_len = 0, str_len; local
5543 str_len = format_len + 1024;
5544 str = emalloc(str_len);
5545 if ((str_len = strfmon(str, str_len, format, value)) < 0) {
5549 str[str_len] = 0;
5551 RETURN_STRINGL(erealloc(str, str_len + 1), str_len, 0);
5561 int str_len; local
5566 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &str, &str_len, &split_length) == FAIL…
5575 array_init_size(return_value, ((str_len - 1) / split_length) + 1);
5577 if (split_length >= str_len) {
5578 add_next_index_stringl(return_value, str, str_len, 1);
5582 n_reg_segments = str_len / split_length;
5590 if (p != (str + str_len)) {
5591 add_next_index_stringl(return_value, p, (str + str_len - p), 1);