Home
last modified time | relevance | path

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

/PHP-8.3/ext/standard/
H A Dmail.c248 size_t to_len, message_len; in PHP_FUNCTION() local
254 Z_PARAM_PATH(to, to_len) in PHP_FUNCTION()
275 if (to_len > 0) { in PHP_FUNCTION()
276 to_r = estrndup(to, to_len); in PHP_FUNCTION()
277 for (; to_len; to_len--) { in PHP_FUNCTION()
278 if (!isspace((unsigned char) to_r[to_len - 1])) { in PHP_FUNCTION()
281 to_r[to_len - 1] = '\0'; in PHP_FUNCTION()
H A Dstring.c2866 static zend_string* php_char_to_str_ex(zend_string *str, char from, char *to, size_t to_len, bool c… argument
2895 if (to_len > 0) {
2896 result = zend_string_safe_alloc(char_count, to_len - 1, ZSTR_LEN(str), 0);
2908 memcpy(target, to, to_len);
2909 target += to_len;
2922 memcpy(target, to, to_len);
2923 target += to_len;
3180 size_t to_len = 0; local
3186 Z_PARAM_STRING_OR_NULL(to, to_len)
3243 MIN(ZSTR_LEN(from_str), to_len)));
/PHP-8.3/ext/phar/
H A Dstream.c896 uint32_t to_len = ZSTR_LEN(resource_to->path) - 1; in phar_wrapper_rename() local
906 new_str_key = zend_string_alloc(ZSTR_LEN(str_key) + to_len - from_len, 0); in phar_wrapper_rename()
907 memcpy(ZSTR_VAL(new_str_key), ZSTR_VAL(resource_to->path) + 1, to_len); in phar_wrapper_rename()
908 …memcpy(ZSTR_VAL(new_str_key) + to_len, ZSTR_VAL(str_key) + from_len, ZSTR_LEN(str_key) - from_len); in phar_wrapper_rename()
930 new_str_key = zend_string_alloc(ZSTR_LEN(str_key) + to_len - from_len, 0); in phar_wrapper_rename()
931 memcpy(ZSTR_VAL(new_str_key), ZSTR_VAL(resource_to->path) + 1, to_len); in phar_wrapper_rename()
932 …memcpy(ZSTR_VAL(new_str_key) + to_len, ZSTR_VAL(str_key) + from_len, ZSTR_LEN(str_key) - from_len); in phar_wrapper_rename()
947 new_str_key = zend_string_alloc(ZSTR_LEN(str_key) + to_len - from_len, 0); in phar_wrapper_rename()
948 memcpy(ZSTR_VAL(new_str_key), ZSTR_VAL(resource_to->path) + 1, to_len); in phar_wrapper_rename()
949 …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.3/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.3/ext/pgsql/
H A Dpgsql.c3262 size_t to_len; in PHP_FUNCTION() local
3285 to = (char *)PQescapeByteaConn(pgsql, (unsigned char *)ZSTR_VAL(from), ZSTR_LEN(from), &to_len); in PHP_FUNCTION()
3287 to = (char *)PQescapeBytea((unsigned char *)ZSTR_VAL(from), ZSTR_LEN(from), &to_len); in PHP_FUNCTION()
3290 RETVAL_STRINGL(to, to_len-1); /* to_len includes additional '\0' */ in PHP_FUNCTION()
3299 size_t to_len; in PHP_FUNCTION() local
3305 tmp = (char *)PQunescapeBytea((unsigned char*)from, &to_len); in PHP_FUNCTION()
3311 RETVAL_STRINGL(tmp, to_len); in PHP_FUNCTION()
5069 size_t to_len; in php_pgsql_convert() local
5072 tmp = PQescapeByteaConn(pg_link, (unsigned char *)Z_STRVAL_P(val), Z_STRLEN_P(val), &to_len); in php_pgsql_convert()
5073 …tmp_zstr = zend_string_init((char *)tmp, to_len - 1, false); /* PQescapeBytea's to_len includes ad… in php_pgsql_convert()
/PHP-8.3/ext/mbstring/
H A Dmbstring.c4172 size_t to_len; in PHP_FUNCTION() local
4206 Z_PARAM_PATH(to, to_len) in PHP_FUNCTION()
4290 if (to_len > 0) { in PHP_FUNCTION()
4291 to_r = estrndup(to, to_len); in PHP_FUNCTION()
4292 for (; to_len; to_len--) { in PHP_FUNCTION()
4293 if (!isspace((unsigned char) to_r[to_len - 1])) { in PHP_FUNCTION()
4296 to_r[to_len - 1] = '\0'; in PHP_FUNCTION()

Completed in 71 milliseconds