public function matchAll($str, $offset = 0) { return new XArray(r::matchAll($this->pattern, XString::unwrap($str), $offset)); }