Lines Matching refs:mb_len
307 int mb_len = php_mblen(str + x, (l - x)); in php_escape_shell_cmd() local
310 if (mb_len < 0) { in php_escape_shell_cmd()
312 } else if (mb_len > 1) { in php_escape_shell_cmd()
313 memcpy(cmd + y, str + x, mb_len); in php_escape_shell_cmd()
314 y += mb_len; in php_escape_shell_cmd()
315 x += mb_len - 1; in php_escape_shell_cmd()
417 int mb_len = php_mblen(str + x, (l - x)); in php_escape_shell_arg() local
420 if (mb_len < 0) { in php_escape_shell_arg()
422 } else if (mb_len > 1) { in php_escape_shell_arg()
423 memcpy(cmd + y, str + x, mb_len); in php_escape_shell_arg()
424 y += mb_len; in php_escape_shell_arg()
425 x += mb_len - 1; in php_escape_shell_arg()