@@ 2065-2071 (lines=7) @@ | ||
2062 | * |
|
2063 | * @return static |
|
2064 | */ |
|
2065 | public function lastSubstringOf(string $needle, bool $beforeNeedle = false): self |
|
2066 | { |
|
2067 | return static::create( |
|
2068 | $this->utf8::str_substr_last( |
|
2069 | $this->str, |
|
2070 | $needle, |
|
2071 | $beforeNeedle, |
|
2072 | $this->encoding |
|
2073 | ), |
|
2074 | $this->encoding |
|
@@ 2089-2095 (lines=7) @@ | ||
2086 | * |
|
2087 | * @return static |
|
2088 | */ |
|
2089 | public function lastSubstringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
2090 | { |
|
2091 | return static::create( |
|
2092 | $this->utf8::str_isubstr_last( |
|
2093 | $this->str, |
|
2094 | $needle, |
|
2095 | $beforeNeedle, |
|
2096 | $this->encoding |
|
2097 | ), |
|
2098 | $this->encoding |
|
@@ 3452-3458 (lines=7) @@ | ||
3449 | * |
|
3450 | * @return static |
|
3451 | */ |
|
3452 | public function substringOf(string $needle, bool $beforeNeedle = false): self |
|
3453 | { |
|
3454 | return static::create( |
|
3455 | $this->utf8::str_substr_first( |
|
3456 | $this->str, |
|
3457 | $needle, |
|
3458 | $beforeNeedle, |
|
3459 | $this->encoding |
|
3460 | ), |
|
3461 | $this->encoding |
|
@@ 3476-3482 (lines=7) @@ | ||
3473 | * |
|
3474 | * @return static |
|
3475 | */ |
|
3476 | public function substringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
3477 | { |
|
3478 | return static::create( |
|
3479 | $this->utf8::str_isubstr_first( |
|
3480 | $this->str, |
|
3481 | $needle, |
|
3482 | $beforeNeedle, |
|
3483 | $this->encoding |
|
3484 | ), |
|
3485 | $this->encoding |