Jackalope\Transport\Jackrabbit\Client::isStringValid PHP Method

isStringValid() protected method

If occurrence is found, returns false, otherwise true. Invalid characters were taken from this list: http://en.wikipedia.org/wiki/Valid_characters_in_XML#XML_1.0 Uses regexp mentioned here: http://stackoverflow.com/a/961504
protected isStringValid ( $string ) : boolean
$string string value
return boolean true if string is OK, false otherwise.
    protected function isStringValid($string)
    {
        $regex = '/[^\\x{9}\\x{a}\\x{d}\\x{20}-\\x{D7FF}\\x{E000}-\\x{FFFD}]+/u';
        return preg_match($regex, $string, $matches) === 0;
    }