|
@@ 534-537 (lines=4) @@
|
| 531 |
|
$this->encoding |
| 532 |
|
); |
| 533 |
|
|
| 534 |
|
if (!$caseSensitive) { |
| 535 |
|
$substring = UTF8::strtolower($substring, $this->encoding); |
| 536 |
|
$endOfStr = UTF8::strtolower($endOfStr, $this->encoding); |
| 537 |
|
} |
| 538 |
|
|
| 539 |
|
return (string)$substring === $endOfStr; |
| 540 |
|
} |
|
@@ 485-488 (lines=4) @@
|
| 482 |
|
{ |
| 483 |
|
$str = $this->str; |
| 484 |
|
|
| 485 |
|
if (!$caseSensitive) { |
| 486 |
|
$substring = UTF8::strtolower($substring, $this->encoding); |
| 487 |
|
$str = UTF8::strtolower($this->str, $this->encoding); |
| 488 |
|
} |
| 489 |
|
|
| 490 |
|
return UTF8::strpos($str, $substring, $this->encoding) === 0; |
| 491 |
|
} |