| @@ 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 |
|
| @@ 2972-2978 (lines=7) @@ | ||
| 2969 | * |
|
| 2970 | * @return static |
|
| 2971 | */ |
|
| 2972 | public function substringOf(string $needle, bool $beforeNeedle = false): self |
|
| 2973 | { |
|
| 2974 | return static::create( |
|
| 2975 | $this->utf8::str_substr_first( |
|
| 2976 | $this->str, |
|
| 2977 | $needle, |
|
| 2978 | $beforeNeedle, |
|
| 2979 | $this->encoding |
|
| 2980 | ), |
|
| 2981 | $this->encoding |
|
| @@ 2996-3002 (lines=7) @@ | ||
| 2993 | * |
|
| 2994 | * @return static |
|
| 2995 | */ |
|
| 2996 | public function substringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
| 2997 | { |
|
| 2998 | return static::create( |
|
| 2999 | $this->utf8::str_isubstr_first( |
|
| 3000 | $this->str, |
|
| 3001 | $needle, |
|
| 3002 | $beforeNeedle, |
|
| 3003 | $this->encoding |
|
| 3004 | ), |
|
| 3005 | $this->encoding |
|