@@ 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 |
|
@@ 3442-3448 (lines=7) @@ | ||
3439 | * |
|
3440 | * @return static |
|
3441 | */ |
|
3442 | public function substringOf(string $needle, bool $beforeNeedle = false): self |
|
3443 | { |
|
3444 | return static::create( |
|
3445 | $this->utf8::str_substr_first( |
|
3446 | $this->str, |
|
3447 | $needle, |
|
3448 | $beforeNeedle, |
|
3449 | $this->encoding |
|
3450 | ), |
|
3451 | $this->encoding |
|
@@ 3466-3472 (lines=7) @@ | ||
3463 | * |
|
3464 | * @return static |
|
3465 | */ |
|
3466 | public function substringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
3467 | { |
|
3468 | return static::create( |
|
3469 | $this->utf8::str_isubstr_first( |
|
3470 | $this->str, |
|
3471 | $needle, |
|
3472 | $beforeNeedle, |
|
3473 | $this->encoding |
|
3474 | ), |
|
3475 | $this->encoding |