Lines Matching refs:str_len
1620 size_t str_len; local
1624 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|l", &str, &str_len, &levels) == FAILURE) {
1628 ret = zend_string_init(str, str_len, 0);
1632 ZSTR_LEN(ret) = zend_dirname(ZSTR_VAL(ret), str_len);
1640 ZSTR_LEN(ret) = zend_dirname(ZSTR_VAL(ret), str_len = ZSTR_LEN(ret));
1641 } while (ZSTR_LEN(ret) < str_len && --levels);
2693 size_t str_len; local
2696 Z_PARAM_STRING(str, str_len)
3121 char *needle, size_t needle_len, char *str, size_t str_len, zend_long *replace_count) argument
3129 if (needle_len == str_len) {
3136 memcpy(ZSTR_VAL(new_str) + (r - ZSTR_VAL(haystack)), str, str_len);
3157 if (str_len > needle_len) {
3158 new_str = zend_string_safe_alloc(count, str_len - needle_len, ZSTR_LEN(haystack), 0);
3160 new_str = zend_string_alloc(count * (str_len - needle_len) + ZSTR_LEN(haystack), 0);
3168 memcpy(e, str, str_len);
3169 e += str_len;
3185 new_str = zend_string_init(str, str_len, 0);
3195 zend_string *needle, char *str, size_t str_len, zend_long *replace_count) argument
3204 if (ZSTR_LEN(needle) == str_len) {
3211 memcpy(ZSTR_VAL(new_str) + (r - lc_haystack), str, str_len);
3239 if (str_len > ZSTR_LEN(lc_needle)) {
3240 new_str = zend_string_safe_alloc(count, str_len - ZSTR_LEN(lc_needle), ZSTR_LEN(haystack), 0);
3242 new_str = zend_string_alloc(count * (str_len - ZSTR_LEN(lc_needle)) + ZSTR_LEN(haystack), 0);
3251 memcpy(e, str, str_len);
3252 e += str_len;
3278 new_str = zend_string_init(str, str_len, 0);
3288 …r_to_str(char *haystack, size_t length, char *needle, size_t needle_len, char *str, size_t str_len) argument
3296 if (needle_len == str_len) {
3300 memcpy(r, str, str_len);
3304 if (str_len < needle_len) {
3321 if (str_len > needle_len) {
3322 new_str = zend_string_safe_alloc(count, str_len - needle_len, length, 0);
3324 new_str = zend_string_alloc(count * (str_len - needle_len) + length, 0);
3334 memcpy(e, str, str_len);
3335 e += str_len;
3351 new_str = zend_string_init(str, str_len, 0);
4105 size_t str_len; local
4108 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|l", &str, &str_len, &max_chars) == FAILURE) {
4112 if (str_len == 0) {
4119 heb_str = (char *) emalloc(str_len+1);
4120 target = heb_str+str_len;
4134 …isblank((int)*(tmp+1)) || ispunct((int)*(tmp+1)) || (int)*(tmp+1)=='\n' ) && block_end<str_len-1) {
4179 while (!isheb(*(tmp+1)) && (int)*(tmp+1)!='\n' && block_end < str_len-1) {
4195 } while (block_end < str_len-1);
4198 broken_str = zend_string_alloc(str_len, 0);
4199 begin = end = str_len-1;
5316 size_t str_len, format_len; local
5319 if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss*", &str, &str_len, &format, &format_len,