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