private static function ProcessUtils::isSurroundedBy in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/process/ProcessUtils.php \Symfony\Component\Process\ProcessUtils::isSurroundedBy()
1 call to ProcessUtils::isSurroundedBy()
- ProcessUtils::escapeArgument in vendor/
symfony/ process/ ProcessUtils.php - Escapes a string to be used as a shell argument.
File
- vendor/
symfony/ process/ ProcessUtils.php, line 111
Class
- ProcessUtils
- ProcessUtils is a bunch of utility methods.
Namespace
Symfony\Component\ProcessCode
private static function isSurroundedBy($arg, $char) {
return 2 < strlen($arg) && $char === $arg[0] && $char === $arg[strlen($arg) - 1];
}