| @@ 1874-1880 (lines=7) @@ | ||
| 1871 | * |
|
| 1872 | * @return static |
|
| 1873 | */ |
|
| 1874 | public function lastSubstringOf(string $needle, bool $beforeNeedle = false): self |
|
| 1875 | { |
|
| 1876 | return static::create( |
|
| 1877 | $this->utf8::str_substr_last( |
|
| 1878 | $this->str, |
|
| 1879 | $needle, |
|
| 1880 | $beforeNeedle, |
|
| 1881 | $this->encoding |
|
| 1882 | ), |
|
| 1883 | $this->encoding |
|
| @@ 1898-1904 (lines=7) @@ | ||
| 1895 | * |
|
| 1896 | * @return static |
|
| 1897 | */ |
|
| 1898 | public function lastSubstringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
| 1899 | { |
|
| 1900 | return static::create( |
|
| 1901 | $this->utf8::str_isubstr_last( |
|
| 1902 | $this->str, |
|
| 1903 | $needle, |
|
| 1904 | $beforeNeedle, |
|
| 1905 | $this->encoding |
|
| 1906 | ), |
|
| 1907 | $this->encoding |
|
| @@ 3088-3094 (lines=7) @@ | ||
| 3085 | * |
|
| 3086 | * @return static |
|
| 3087 | */ |
|
| 3088 | public function substringOf(string $needle, bool $beforeNeedle = false): self |
|
| 3089 | { |
|
| 3090 | return static::create( |
|
| 3091 | $this->utf8::str_substr_first( |
|
| 3092 | $this->str, |
|
| 3093 | $needle, |
|
| 3094 | $beforeNeedle, |
|
| 3095 | $this->encoding |
|
| 3096 | ), |
|
| 3097 | $this->encoding |
|
| @@ 3112-3118 (lines=7) @@ | ||
| 3109 | * |
|
| 3110 | * @return static |
|
| 3111 | */ |
|
| 3112 | public function substringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
| 3113 | { |
|
| 3114 | return static::create( |
|
| 3115 | $this->utf8::str_isubstr_first( |
|
| 3116 | $this->str, |
|
| 3117 | $needle, |
|
| 3118 | $beforeNeedle, |
|
| 3119 | $this->encoding |
|
| 3120 | ), |
|
| 3121 | $this->encoding |
|