| @@ 1758-1764 (lines=7) @@ | ||
| 1755 | * |
|
| 1756 | * @return static |
|
| 1757 | */ |
|
| 1758 | public function lastSubstringOf(string $needle, bool $beforeNeedle = false): self |
|
| 1759 | { |
|
| 1760 | return static::create( |
|
| 1761 | $this->utf8::str_substr_last( |
|
| 1762 | $this->str, |
|
| 1763 | $needle, |
|
| 1764 | $beforeNeedle, |
|
| 1765 | $this->encoding |
|
| 1766 | ), |
|
| 1767 | $this->encoding |
|
| @@ 1782-1788 (lines=7) @@ | ||
| 1779 | * |
|
| 1780 | * @return static |
|
| 1781 | */ |
|
| 1782 | public function lastSubstringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
| 1783 | { |
|
| 1784 | return static::create( |
|
| 1785 | $this->utf8::str_isubstr_last( |
|
| 1786 | $this->str, |
|
| 1787 | $needle, |
|
| 1788 | $beforeNeedle, |
|
| 1789 | $this->encoding |
|
| 1790 | ), |
|
| 1791 | $this->encoding |
|
| @@ 3019-3025 (lines=7) @@ | ||
| 3016 | * |
|
| 3017 | * @return static |
|
| 3018 | */ |
|
| 3019 | public function substringOf(string $needle, bool $beforeNeedle = false): self |
|
| 3020 | { |
|
| 3021 | return static::create( |
|
| 3022 | $this->utf8::str_substr_first( |
|
| 3023 | $this->str, |
|
| 3024 | $needle, |
|
| 3025 | $beforeNeedle, |
|
| 3026 | $this->encoding |
|
| 3027 | ), |
|
| 3028 | $this->encoding |
|
| @@ 3043-3049 (lines=7) @@ | ||
| 3040 | * |
|
| 3041 | * @return static |
|
| 3042 | */ |
|
| 3043 | public function substringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
| 3044 | { |
|
| 3045 | return static::create( |
|
| 3046 | $this->utf8::str_isubstr_first( |
|
| 3047 | $this->str, |
|
| 3048 | $needle, |
|
| 3049 | $beforeNeedle, |
|
| 3050 | $this->encoding |
|
| 3051 | ), |
|
| 3052 | $this->encoding |
|