|
@@ 513-516 (lines=4) @@
|
| 510 |
|
{ |
| 511 |
|
$str = $this->str; |
| 512 |
|
|
| 513 |
|
if (!$caseSensitive) { |
| 514 |
|
$substring = UTF8::strtolower($substring, $this->encoding); |
| 515 |
|
$str = UTF8::strtolower($this->str, $this->encoding); |
| 516 |
|
} |
| 517 |
|
|
| 518 |
|
return UTF8::strpos($str, $substring, 0, $this->encoding) === 0; |
| 519 |
|
} |
|
@@ 586-589 (lines=4) @@
|
| 583 |
|
$this->encoding |
| 584 |
|
); |
| 585 |
|
|
| 586 |
|
if (!$caseSensitive) { |
| 587 |
|
$substring = UTF8::strtolower($substring, $this->encoding); |
| 588 |
|
$endOfStr = UTF8::strtolower($endOfStr, $this->encoding); |
| 589 |
|
} |
| 590 |
|
|
| 591 |
|
return $substring === $endOfStr; |
| 592 |
|
} |