| @@ 2558-2564 (lines=7) @@ | ||
| 2555 | * |
|
| 2556 | * @return static |
|
| 2557 | */ |
|
| 2558 | public function lastSubstringOf(string $needle, bool $beforeNeedle = false): self |
|
| 2559 | { |
|
| 2560 | return static::create( |
|
| 2561 | $this->utf8::str_substr_last( |
|
| 2562 | $this->str, |
|
| 2563 | $needle, |
|
| 2564 | $beforeNeedle, |
|
| 2565 | $this->encoding |
|
| 2566 | ), |
|
| 2567 | $this->encoding |
|
| @@ 2585-2591 (lines=7) @@ | ||
| 2582 | * |
|
| 2583 | * @return static |
|
| 2584 | */ |
|
| 2585 | public function lastSubstringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
| 2586 | { |
|
| 2587 | return static::create( |
|
| 2588 | $this->utf8::str_isubstr_last( |
|
| 2589 | $this->str, |
|
| 2590 | $needle, |
|
| 2591 | $beforeNeedle, |
|
| 2592 | $this->encoding |
|
| 2593 | ), |
|
| 2594 | $this->encoding |
|
| @@ 4172-4178 (lines=7) @@ | ||
| 4169 | * |
|
| 4170 | * @return static |
|
| 4171 | */ |
|
| 4172 | public function substringOf(string $needle, bool $beforeNeedle = false): self |
|
| 4173 | { |
|
| 4174 | return static::create( |
|
| 4175 | $this->utf8::str_substr_first( |
|
| 4176 | $this->str, |
|
| 4177 | $needle, |
|
| 4178 | $beforeNeedle, |
|
| 4179 | $this->encoding |
|
| 4180 | ), |
|
| 4181 | $this->encoding |
|
| @@ 4199-4205 (lines=7) @@ | ||
| 4196 | * |
|
| 4197 | * @return static |
|
| 4198 | */ |
|
| 4199 | public function substringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
| 4200 | { |
|
| 4201 | return static::create( |
|
| 4202 | $this->utf8::str_isubstr_first( |
|
| 4203 | $this->str, |
|
| 4204 | $needle, |
|
| 4205 | $beforeNeedle, |
|
| 4206 | $this->encoding |
|
| 4207 | ), |
|
| 4208 | $this->encoding |
|