Stringy\Stringy::matchesPattern PHP 메소드

matchesPattern() 개인적인 메소드

Returns true if $str matches the supplied pattern, false otherwise.
private matchesPattern ( string $pattern ) : boolean
$pattern string Regex pattern to match against
리턴 boolean Whether or not $str matches the pattern
    private function matchesPattern($pattern)
    {
        $regexEncoding = $this->regexEncoding();
        $this->regexEncoding($this->encoding);
        $match = \mb_ereg_match($pattern, $this->str);
        $this->regexEncoding($regexEncoding);
        return $match;
    }