| @@ 1358-1364 (lines=7) @@ | ||
| 1355 | * |
|
| 1356 | * @return static |
|
| 1357 | */ |
|
| 1358 | public function lastSubstringOf(string $needle, bool $beforeNeedle = false): self |
|
| 1359 | { |
|
| 1360 | return static::create( |
|
| 1361 | $this->utf8::str_substr_last( |
|
| 1362 | $this->str, |
|
| 1363 | $needle, |
|
| 1364 | $beforeNeedle, |
|
| 1365 | $this->encoding |
|
| 1366 | ), |
|
| 1367 | $this->encoding |
|
| @@ 1380-1386 (lines=7) @@ | ||
| 1377 | * |
|
| 1378 | * @return static |
|
| 1379 | */ |
|
| 1380 | public function lastSubstringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
| 1381 | { |
|
| 1382 | return static::create( |
|
| 1383 | $this->utf8::str_isubstr_last( |
|
| 1384 | $this->str, |
|
| 1385 | $needle, |
|
| 1386 | $beforeNeedle, |
|
| 1387 | $this->encoding |
|
| 1388 | ), |
|
| 1389 | $this->encoding |
|
| @@ 2232-2238 (lines=7) @@ | ||
| 2229 | * |
|
| 2230 | * @return static |
|
| 2231 | */ |
|
| 2232 | public function substringOf(string $needle, bool $beforeNeedle = false): self |
|
| 2233 | { |
|
| 2234 | return static::create( |
|
| 2235 | $this->utf8::str_substr_first( |
|
| 2236 | $this->str, |
|
| 2237 | $needle, |
|
| 2238 | $beforeNeedle, |
|
| 2239 | $this->encoding |
|
| 2240 | ), |
|
| 2241 | $this->encoding |
|
| @@ 2254-2260 (lines=7) @@ | ||
| 2251 | * |
|
| 2252 | * @return static |
|
| 2253 | */ |
|
| 2254 | public function substringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
| 2255 | { |
|
| 2256 | return static::create( |
|
| 2257 | $this->utf8::str_isubstr_first( |
|
| 2258 | $this->str, |
|
| 2259 | $needle, |
|
| 2260 | $beforeNeedle, |
|
| 2261 | $this->encoding |
|
| 2262 | ), |
|
| 2263 | $this->encoding |
|