Home
last modified time | relevance | path

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

/PHP-7.4/ext/standard/
H A Dmail.c286 size_t to_len, message_len; in PHP_FUNCTION() local
293 Z_PARAM_STRING(to, to_len) in PHP_FUNCTION()
302 MAIL_ASCIIZ_CHECK(to, to_len); in PHP_FUNCTION()
325 if (to_len > 0) { in PHP_FUNCTION()
326 to_r = estrndup(to, to_len); in PHP_FUNCTION()
327 for (; to_len; to_len--) { in PHP_FUNCTION()
328 if (!isspace((unsigned char) to_r[to_len - 1])) { in PHP_FUNCTION()
331 to_r[to_len - 1] = '\0'; in PHP_FUNCTION()
H A Dstring.c3141 static zend_string* php_char_to_str_ex(zend_string *str, char from, char *to, size_t to_len, int ca… argument
3168 if (to_len > 0) {
3169 result = zend_string_safe_alloc(char_count, to_len - 1, ZSTR_LEN(str), 0);
3180 memcpy(target, to, to_len);
3181 target += to_len;
3198 memcpy(target, to, to_len);
3199 target += to_len;
3468 size_t to_len = 0; local
3475 Z_PARAM_STRING(to, to_len)
3534 MIN(Z_STRLEN_P(from), to_len)));
/PHP-7.4/ext/phar/
H A Dstream.c887 uint32_t to_len = ZSTR_LEN(resource_to->path) - 1; in phar_wrapper_rename() local
897 new_str_key = zend_string_alloc(ZSTR_LEN(str_key) + to_len - from_len, 0); in phar_wrapper_rename()
898 memcpy(ZSTR_VAL(new_str_key), ZSTR_VAL(resource_to->path) + 1, to_len); in phar_wrapper_rename()
899 …memcpy(ZSTR_VAL(new_str_key) + to_len, ZSTR_VAL(str_key) + from_len, ZSTR_LEN(str_key) - from_len); in phar_wrapper_rename()
922 new_str_key = zend_string_alloc(ZSTR_LEN(str_key) + to_len - from_len, 0); in phar_wrapper_rename()
923 memcpy(ZSTR_VAL(new_str_key), ZSTR_VAL(resource_to->path) + 1, to_len); in phar_wrapper_rename()
924 …memcpy(ZSTR_VAL(new_str_key) + to_len, ZSTR_VAL(str_key) + from_len, ZSTR_LEN(str_key) - from_len); in phar_wrapper_rename()
940 new_str_key = zend_string_alloc(ZSTR_LEN(str_key) + to_len - from_len, 0); in phar_wrapper_rename()
941 memcpy(ZSTR_VAL(new_str_key), ZSTR_VAL(resource_to->path) + 1, to_len); in phar_wrapper_rename()
942 …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-7.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-7.4/ext/pgsql/
H A Dpgsql.c4416 size_t to_len; local
4444 to = (char *)PQescapeByteaConn(pgsql, (unsigned char *)from, (size_t)from_len, &to_len);
4447 to = (char *)PQescapeBytea((unsigned char*)from, from_len, &to_len);
4449 RETVAL_STRINGL(to, to_len-1); /* to_len includes additional '\0' */
4566 size_t to_len; local
4574 tmp = (char *)PQunescapeBytea((unsigned char*)from, &to_len);
4575 to = estrndup(tmp, to_len);
4578 to = (char *)php_pgsql_unescape_bytea((unsigned char*)from, &to_len);
4584 RETVAL_STRINGL(to, to_len);
6402 size_t to_len; local
[all …]
/PHP-7.4/ext/mbstring/
H A Dmbstring.c4342 size_t to_len; in PHP_FUNCTION() local
4389 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "sss|zS", &to, &to_len, &subject, &subject_len, &messag… in PHP_FUNCTION()
4394 MAIL_ASCIIZ_CHECK_MBSTRING(to, to_len); in PHP_FUNCTION()
4480 if (to_len > 0) { in PHP_FUNCTION()
4481 to_r = estrndup(to, to_len); in PHP_FUNCTION()
4482 for (; to_len; to_len--) { in PHP_FUNCTION()
4483 if (!isspace((unsigned char) to_r[to_len - 1])) { in PHP_FUNCTION()
4486 to_r[to_len - 1] = '\0'; in PHP_FUNCTION()

Completed in 98 milliseconds