Esempio n. 1
0
 public function __construct($string = "")
 {
     parent::__construct();
     if (!Validator::isString($string)) {
         throw new IllegalArgumentException();
     }
     $this->string = (string) $string;
     $this->matches = NULL;
     $this->length = mb_strlen($this->string, self::UTF8);
     self::$separators = ["\n", "\r", "\r\n", "\n\r", chr(30), chr(155), PHP_EOL];
 }