| @@ 1568-1574 (lines=7) @@ | ||
| 1565 | * |
|
| 1566 | * @return static |
|
| 1567 | */ |
|
| 1568 | public function lastSubstringOf(string $needle, bool $beforeNeedle = false): self |
|
| 1569 | { |
|
| 1570 | return static::create( |
|
| 1571 | $this->utf8::str_substr_last( |
|
| 1572 | $this->str, |
|
| 1573 | $needle, |
|
| 1574 | $beforeNeedle, |
|
| 1575 | $this->encoding |
|
| 1576 | ), |
|
| 1577 | $this->encoding |
|
| @@ 1592-1598 (lines=7) @@ | ||
| 1589 | * |
|
| 1590 | * @return static |
|
| 1591 | */ |
|
| 1592 | public function lastSubstringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
| 1593 | { |
|
| 1594 | return static::create( |
|
| 1595 | $this->utf8::str_isubstr_last( |
|
| 1596 | $this->str, |
|
| 1597 | $needle, |
|
| 1598 | $beforeNeedle, |
|
| 1599 | $this->encoding |
|
| 1600 | ), |
|
| 1601 | $this->encoding |
|
| @@ 2565-2571 (lines=7) @@ | ||
| 2562 | * |
|
| 2563 | * @return static |
|
| 2564 | */ |
|
| 2565 | public function substringOf(string $needle, bool $beforeNeedle = false): self |
|
| 2566 | { |
|
| 2567 | return static::create( |
|
| 2568 | $this->utf8::str_substr_first( |
|
| 2569 | $this->str, |
|
| 2570 | $needle, |
|
| 2571 | $beforeNeedle, |
|
| 2572 | $this->encoding |
|
| 2573 | ), |
|
| 2574 | $this->encoding |
|
| @@ 2589-2595 (lines=7) @@ | ||
| 2586 | * |
|
| 2587 | * @return static |
|
| 2588 | */ |
|
| 2589 | public function substringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
| 2590 | { |
|
| 2591 | return static::create( |
|
| 2592 | $this->utf8::str_isubstr_first( |
|
| 2593 | $this->str, |
|
| 2594 | $needle, |
|
| 2595 | $beforeNeedle, |
|
| 2596 | $this->encoding |
|
| 2597 | ), |
|
| 2598 | $this->encoding |
|