@@ 486-489 (lines=4) @@ | ||
483 | { |
|
484 | $str = $this->str; |
|
485 | ||
486 | if (!$caseSensitive) { |
|
487 | $substring = UTF8::strtolower($substring, $this->encoding); |
|
488 | $str = UTF8::strtolower($this->str, $this->encoding); |
|
489 | } |
|
490 | ||
491 | return UTF8::strpos($str, $substring, $this->encoding) === 0; |
|
492 | } |
|
@@ 560-563 (lines=4) @@ | ||
557 | $this->encoding |
|
558 | ); |
|
559 | ||
560 | if (!$caseSensitive) { |
|
561 | $substring = UTF8::strtolower($substring, $this->encoding); |
|
562 | $endOfStr = UTF8::strtolower($endOfStr, $this->encoding); |
|
563 | } |
|
564 | ||
565 | return (string)$substring === $endOfStr; |
|
566 | } |