| @@ 1936-1942 (lines=7) @@ | ||
| 1933 | * |
|
| 1934 | * @return static |
|
| 1935 | */ |
|
| 1936 | public function lastSubstringOf(string $needle, bool $beforeNeedle = false): self |
|
| 1937 | { |
|
| 1938 | return static::create( |
|
| 1939 | $this->utf8::str_substr_last( |
|
| 1940 | $this->str, |
|
| 1941 | $needle, |
|
| 1942 | $beforeNeedle, |
|
| 1943 | $this->encoding |
|
| 1944 | ), |
|
| 1945 | $this->encoding |
|
| @@ 1960-1966 (lines=7) @@ | ||
| 1957 | * |
|
| 1958 | * @return static |
|
| 1959 | */ |
|
| 1960 | public function lastSubstringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
| 1961 | { |
|
| 1962 | return static::create( |
|
| 1963 | $this->utf8::str_isubstr_last( |
|
| 1964 | $this->str, |
|
| 1965 | $needle, |
|
| 1966 | $beforeNeedle, |
|
| 1967 | $this->encoding |
|
| 1968 | ), |
|
| 1969 | $this->encoding |
|
| @@ 3187-3193 (lines=7) @@ | ||
| 3184 | * |
|
| 3185 | * @return static |
|
| 3186 | */ |
|
| 3187 | public function substringOf(string $needle, bool $beforeNeedle = false): self |
|
| 3188 | { |
|
| 3189 | return static::create( |
|
| 3190 | $this->utf8::str_substr_first( |
|
| 3191 | $this->str, |
|
| 3192 | $needle, |
|
| 3193 | $beforeNeedle, |
|
| 3194 | $this->encoding |
|
| 3195 | ), |
|
| 3196 | $this->encoding |
|
| @@ 3211-3217 (lines=7) @@ | ||
| 3208 | * |
|
| 3209 | * @return static |
|
| 3210 | */ |
|
| 3211 | public function substringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
| 3212 | { |
|
| 3213 | return static::create( |
|
| 3214 | $this->utf8::str_isubstr_first( |
|
| 3215 | $this->str, |
|
| 3216 | $needle, |
|
| 3217 | $beforeNeedle, |
|
| 3218 | $this->encoding |
|
| 3219 | ), |
|
| 3220 | $this->encoding |
|