예제 #1
0
 protected function search($suffixes, $offset = 0)
 {
     $length = Utf8::strlen($this->word);
     if ($offset > $length) {
         return false;
     }
     foreach ($suffixes as $suffixe) {
         if (($position = Utf8::strrpos($this->word, $suffixe, $offset)) !== false && Utf8::strlen($suffixe) + $position == $length) {
             return $position;
         }
     }
     return false;
 }