Home
last modified time | relevance | path

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

/PHP-8.1/ext/standard/
H A Dmail.c211 size_t to_len, message_len; in PHP_FUNCTION() local
217 Z_PARAM_PATH(to, to_len) in PHP_FUNCTION()
238 if (to_len > 0) { in PHP_FUNCTION()
239 to_r = estrndup(to, to_len); in PHP_FUNCTION()
240 for (; to_len; to_len--) { in PHP_FUNCTION()
241 if (!isspace((unsigned char) to_r[to_len - 1])) { in PHP_FUNCTION()
244 to_r[to_len - 1] = '\0'; in PHP_FUNCTION()
H A Dstring.c2926 static zend_string* php_char_to_str_ex(zend_string *str, char from, char *to, size_t to_len, int ca… argument
2953 if (to_len > 0) {
2954 result = zend_string_safe_alloc(char_count, to_len - 1, ZSTR_LEN(str), 0);
2965 memcpy(target, to, to_len);
2966 target += to_len;
2983 memcpy(target, to, to_len);
2984 target += to_len;
3241 size_t to_len = 0; local
3247 Z_PARAM_STRING_OR_NULL(to, to_len)
3304 MIN(ZSTR_LEN(from_str), to_len)));
/PHP-8.1/ext/phar/
H A Dstream.c884 uint32_t to_len = ZSTR_LEN(resource_to->path) - 1; in phar_wrapper_rename() local
894 new_str_key = zend_string_alloc(ZSTR_LEN(str_key) + to_len - from_len, 0); in phar_wrapper_rename()
895 memcpy(ZSTR_VAL(new_str_key), ZSTR_VAL(resource_to->path) + 1, to_len); in phar_wrapper_rename()
896 …memcpy(ZSTR_VAL(new_str_key) + to_len, ZSTR_VAL(str_key) + from_len, ZSTR_LEN(str_key) - from_len); in phar_wrapper_rename()
919 new_str_key = zend_string_alloc(ZSTR_LEN(str_key) + to_len - from_len, 0); in phar_wrapper_rename()
920 memcpy(ZSTR_VAL(new_str_key), ZSTR_VAL(resource_to->path) + 1, to_len); in phar_wrapper_rename()
921 …memcpy(ZSTR_VAL(new_str_key) + to_len, ZSTR_VAL(str_key) + from_len, ZSTR_LEN(str_key) - from_len); in phar_wrapper_rename()
937 new_str_key = zend_string_alloc(ZSTR_LEN(str_key) + to_len - from_len, 0); in phar_wrapper_rename()
938 memcpy(ZSTR_VAL(new_str_key), ZSTR_VAL(resource_to->path) + 1, to_len); in phar_wrapper_rename()
939 …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.1/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.1/ext/mbstring/
H A Dmbstring.c3483 size_t to_len; in PHP_FUNCTION() local
3530 Z_PARAM_PATH(to, to_len) in PHP_FUNCTION()
3614 if (to_len > 0) { in PHP_FUNCTION()
3615 to_r = estrndup(to, to_len); in PHP_FUNCTION()
3616 for (; to_len; to_len--) { in PHP_FUNCTION()
3617 if (!isspace((unsigned char) to_r[to_len - 1])) { in PHP_FUNCTION()
3620 to_r[to_len - 1] = '\0'; in PHP_FUNCTION()
/PHP-8.1/ext/pgsql/
H A Dpgsql.c3317 size_t to_len; in PHP_FUNCTION() local
3340 to = (char *)PQescapeByteaConn(pgsql, (unsigned char *)ZSTR_VAL(from), ZSTR_LEN(from), &to_len); in PHP_FUNCTION()
3342 to = (char *)PQescapeBytea((unsigned char *)ZSTR_VAL(from), ZSTR_LEN(from), &to_len); in PHP_FUNCTION()
3345 RETVAL_STRINGL(to, to_len-1); /* to_len includes additional '\0' */ in PHP_FUNCTION()
3354 size_t to_len; in PHP_FUNCTION() local
3360 tmp = (char *)PQunescapeBytea((unsigned char*)from, &to_len); in PHP_FUNCTION()
3366 RETVAL_STRINGL(tmp, to_len); in PHP_FUNCTION()
5112 size_t to_len; in php_pgsql_convert() local
5115 tmp = PQescapeByteaConn(pg_link, (unsigned char *)Z_STRVAL_P(val), Z_STRLEN_P(val), &to_len); in php_pgsql_convert()
5116 …tmp_zstr = zend_string_init((char *)tmp, to_len - 1, false); /* PQescapeBytea's to_len includes ad… in php_pgsql_convert()

Completed in 50 milliseconds