Home
last modified time | relevance | path

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

/php-src/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.c3128 static zend_string* php_char_to_str_ex(zend_string *str, char from, char *to, size_t to_len, bool c… argument
3157 if (to_len > 0) {
3158 result = zend_string_safe_alloc(char_count, to_len - 1, ZSTR_LEN(str), 0);
3169 target = zend_mempcpy(target, to, to_len);
3181 target = zend_mempcpy(target, to, to_len);
3469 size_t to_len = 0; local
3480 Z_PARAM_STRING(to, to_len)
3495 MIN(ZSTR_LEN(from_str), to_len)));
/php-src/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-src/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-src/ext/pgsql/
H A Dpgsql.c3271 size_t to_len; in PHP_FUNCTION() local
3294 to = (char *)PQescapeByteaConn(pgsql, (unsigned char *)ZSTR_VAL(from), ZSTR_LEN(from), &to_len); in PHP_FUNCTION()
3296 to = (char *)PQescapeBytea((unsigned char *)ZSTR_VAL(from), ZSTR_LEN(from), &to_len); in PHP_FUNCTION()
3299 RETVAL_STRINGL(to, to_len-1); /* to_len includes additional '\0' */ in PHP_FUNCTION()
3308 size_t to_len; in PHP_FUNCTION() local
3314 tmp = (char *)PQunescapeBytea((unsigned char*)from, &to_len); in PHP_FUNCTION()
3320 RETVAL_STRINGL(tmp, to_len); in PHP_FUNCTION()
5078 size_t to_len; in php_pgsql_convert() local
5081 tmp = PQescapeByteaConn(pg_link, (unsigned char *)Z_STRVAL_P(val), Z_STRLEN_P(val), &to_len); in php_pgsql_convert()
5082 …tmp_zstr = zend_string_init((char *)tmp, to_len - 1, false); /* PQescapeBytea's to_len includes ad… in php_pgsql_convert()
/php-src/ext/mbstring/
H A Dmbstring.c4429 size_t to_len; in PHP_FUNCTION() local
4463 Z_PARAM_PATH(to, to_len) in PHP_FUNCTION()
4547 if (to_len > 0) { in PHP_FUNCTION()
4548 to_r = estrndup(to, to_len); in PHP_FUNCTION()
4549 for (; to_len; to_len--) { in PHP_FUNCTION()
4550 if (!isspace((unsigned char) to_r[to_len - 1])) { in PHP_FUNCTION()
4553 to_r[to_len - 1] = '\0'; in PHP_FUNCTION()

Completed in 72 milliseconds