public function indexOf($needle, $offset = 0) { return \mb_strpos($this->str, (string) $needle, (int) $offset, $this->encoding); }