Home
last modified time | relevance | path

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

/PHP-8.2/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.c2917 static zend_string* php_char_to_str_ex(zend_string *str, char from, char *to, size_t to_len, bool c… argument
2946 if (to_len > 0) {
2947 result = zend_string_safe_alloc(char_count, to_len - 1, ZSTR_LEN(str), 0);
2959 memcpy(target, to, to_len);
2960 target += to_len;
2973 memcpy(target, to, to_len);
2974 target += to_len;
3231 size_t to_len = 0; local
3237 Z_PARAM_STRING_OR_NULL(to, to_len)
3294 MIN(ZSTR_LEN(from_str), to_len)));
/PHP-8.2/ext/phar/
H A Dstream.c897 uint32_t to_len = ZSTR_LEN(resource_to->path) - 1; in phar_wrapper_rename() local
907 new_str_key = zend_string_alloc(ZSTR_LEN(str_key) + to_len - from_len, 0); in phar_wrapper_rename()
908 memcpy(ZSTR_VAL(new_str_key), ZSTR_VAL(resource_to->path) + 1, to_len); in phar_wrapper_rename()
909 …memcpy(ZSTR_VAL(new_str_key) + to_len, ZSTR_VAL(str_key) + from_len, ZSTR_LEN(str_key) - from_len); in phar_wrapper_rename()
931 new_str_key = zend_string_alloc(ZSTR_LEN(str_key) + to_len - from_len, 0); in phar_wrapper_rename()
932 memcpy(ZSTR_VAL(new_str_key), ZSTR_VAL(resource_to->path) + 1, to_len); in phar_wrapper_rename()
933 …memcpy(ZSTR_VAL(new_str_key) + to_len, ZSTR_VAL(str_key) + from_len, ZSTR_LEN(str_key) - from_len); in phar_wrapper_rename()
948 new_str_key = zend_string_alloc(ZSTR_LEN(str_key) + to_len - from_len, 0); in phar_wrapper_rename()
949 memcpy(ZSTR_VAL(new_str_key), ZSTR_VAL(resource_to->path) + 1, to_len); in phar_wrapper_rename()
950 …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.2/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.2/ext/pgsql/
H A Dpgsql.c3223 size_t to_len; in PHP_FUNCTION() local
3246 to = (char *)PQescapeByteaConn(pgsql, (unsigned char *)ZSTR_VAL(from), ZSTR_LEN(from), &to_len); in PHP_FUNCTION()
3248 to = (char *)PQescapeBytea((unsigned char *)ZSTR_VAL(from), ZSTR_LEN(from), &to_len); in PHP_FUNCTION()
3251 RETVAL_STRINGL(to, to_len-1); /* to_len includes additional '\0' */ in PHP_FUNCTION()
3260 size_t to_len; in PHP_FUNCTION() local
3266 tmp = (char *)PQunescapeBytea((unsigned char*)from, &to_len); in PHP_FUNCTION()
3272 RETVAL_STRINGL(tmp, to_len); in PHP_FUNCTION()
5018 size_t to_len; in php_pgsql_convert() local
5021 tmp = PQescapeByteaConn(pg_link, (unsigned char *)Z_STRVAL_P(val), Z_STRLEN_P(val), &to_len); in php_pgsql_convert()
5022 …tmp_zstr = zend_string_init((char *)tmp, to_len - 1, false); /* PQescapeBytea's to_len includes ad… in php_pgsql_convert()
/PHP-8.2/ext/mbstring/
H A Dmbstring.c3979 size_t to_len; in PHP_FUNCTION() local
4026 Z_PARAM_PATH(to, to_len) in PHP_FUNCTION()
4110 if (to_len > 0) { in PHP_FUNCTION()
4111 to_r = estrndup(to, to_len); in PHP_FUNCTION()
4112 for (; to_len; to_len--) { in PHP_FUNCTION()
4113 if (!isspace((unsigned char) to_r[to_len - 1])) { in PHP_FUNCTION()
4116 to_r[to_len - 1] = '\0'; in PHP_FUNCTION()

Completed in 56 milliseconds