Пример #1
0
 /**
  * @param $value
  * @return int
  * @throws ElementNotFoundException
  */
 public function locate($value)
 {
     if ($this->hString->contains($value)) {
         return mb_strpos($this->hString, (string) $value, null, $this->hString->getEncoding());
     }
     throw new ElementNotFoundException($value);
 }
Пример #2
0
 /**
  * @param $value
  * @return int
  * @throws ElementNotFoundException
  */
 public function locate($value)
 {
     if ($this->hString->contains($value)) {
         return strpos($this->hString, (string) $value);
     }
     throw new ElementNotFoundException($value);
 }