Home
last modified time | relevance | path

Searched refs:to_len (Results 1 – 6 of 6) sorted by relevance

/PHP-8.4/ext/standard/
H A Dmail.c275 size_t to_len, message_len; in PHP_FUNCTION() local
280 Z_PARAM_PATH(to, to_len) in PHP_FUNCTION()
301 if (to_len > 0) { in PHP_FUNCTION()
302 to_r = estrndup(to, to_len); in PHP_FUNCTION()
303 for (; to_len; to_len--) { in PHP_FUNCTION()
304 if (!isspace((unsigned char) to_r[to_len - 1])) { in PHP_FUNCTION()
307 to_r[to_len - 1] = '\0'; in PHP_FUNCTION()
H A Dstring.c3096 static zend_string* php_char_to_str_ex(zend_string *str, char from, char *to, size_t to_len, bool c… argument
3125 if (to_len > 0) {
3126 result = zend_string_safe_alloc(char_count, to_len - 1, ZSTR_LEN(str), 0);
3137 target = zend_mempcpy(target, to, to_len);
3149 target = zend_mempcpy(target, to, to_len);
3437 size_t to_len = 0; local
3448 Z_PARAM_STRING(to, to_len)
3463 MIN(ZSTR_LEN(from_str), to_len)));
/PHP-8.4/ext/phar/
H A Dstream.c892 size_t to_len = ZSTR_LEN(resource_to->path) - 1; in phar_wrapper_rename() local
902 new_str_key = zend_string_alloc(ZSTR_LEN(str_key) + to_len - from_len, 0); in phar_wrapper_rename()
903 memcpy(ZSTR_VAL(new_str_key), ZSTR_VAL(resource_to->path) + 1, to_len); in phar_wrapper_rename()
904 …memcpy(ZSTR_VAL(new_str_key) + to_len, ZSTR_VAL(str_key) + from_len, ZSTR_LEN(str_key) - from_len); in phar_wrapper_rename()
926 new_str_key = zend_string_alloc(ZSTR_LEN(str_key) + to_len - from_len, 0); in phar_wrapper_rename()
927 memcpy(ZSTR_VAL(new_str_key), ZSTR_VAL(resource_to->path) + 1, to_len); in phar_wrapper_rename()
928 …memcpy(ZSTR_VAL(new_str_key) + to_len, ZSTR_VAL(str_key) + from_len, ZSTR_LEN(str_key) - from_len); in phar_wrapper_rename()
943 new_str_key = zend_string_alloc(ZSTR_LEN(str_key) + to_len - from_len, 0); in phar_wrapper_rename()
944 memcpy(ZSTR_VAL(new_str_key), ZSTR_VAL(resource_to->path) + 1, to_len); in phar_wrapper_rename()
945 …memcpy(ZSTR_VAL(new_str_key) + to_len, ZSTR_VAL(str_key) + from_len, ZSTR_LEN(str_key) - from_len); in phar_wrapper_rename()
/PHP-8.4/ext/gd/libgd/
H A Dgdkanji.c345 size_t from_len, to_len; in do_convert() local
358 to_len = BUFSIZ; in do_convert()
360 if ((int) iconv(cd, (char **) &from, &from_len, (char **) &to, &to_len) == -1) in do_convert()
/PHP-8.4/ext/pgsql/
H A Dpgsql.c3519 size_t to_len; in PHP_FUNCTION() local
3545 to = (char *)PQescapeByteaConn(pgsql, (unsigned char *)ZSTR_VAL(from), ZSTR_LEN(from), &to_len); in PHP_FUNCTION()
3547 to = (char *)PQescapeBytea((unsigned char *)ZSTR_VAL(from), ZSTR_LEN(from), &to_len); in PHP_FUNCTION()
3550 RETVAL_STRINGL(to, to_len-1); /* to_len includes additional '\0' */ in PHP_FUNCTION()
3559 size_t to_len; in PHP_FUNCTION() local
3566 tmp = (char *)PQunescapeBytea((unsigned char*)from, &to_len); in PHP_FUNCTION()
3572 RETVAL_STRINGL(tmp, to_len); in PHP_FUNCTION()
5294 size_t to_len; in php_pgsql_convert() local
5297 tmp = PQescapeByteaConn(pg_link, (unsigned char *)Z_STRVAL_P(val), Z_STRLEN_P(val), &to_len); in php_pgsql_convert()
5298 …tmp_zstr = zend_string_init((char *)tmp, to_len - 1, false); /* PQescapeBytea's to_len includes ad… in php_pgsql_convert()
/PHP-8.4/ext/mbstring/
H A Dmbstring.c4459 size_t to_len; in PHP_FUNCTION() local
4492 Z_PARAM_PATH(to, to_len) in PHP_FUNCTION()
4576 if (to_len > 0) { in PHP_FUNCTION()
4577 to_r = estrndup(to, to_len); in PHP_FUNCTION()
4578 for (; to_len; to_len--) { in PHP_FUNCTION()
4579 if (!isspace((unsigned char) to_r[to_len - 1])) { in PHP_FUNCTION()
4582 to_r[to_len - 1] = '\0'; in PHP_FUNCTION()

Completed in 84 milliseconds