@@ 2089-2095 (lines=7) @@ | ||
2086 | * |
|
2087 | * @return static |
|
2088 | */ |
|
2089 | public function lastSubstringOf(string $needle, bool $beforeNeedle = false): self |
|
2090 | { |
|
2091 | return static::create( |
|
2092 | $this->utf8::str_substr_last( |
|
2093 | $this->str, |
|
2094 | $needle, |
|
2095 | $beforeNeedle, |
|
2096 | $this->encoding |
|
2097 | ), |
|
2098 | $this->encoding |
|
@@ 2113-2119 (lines=7) @@ | ||
2110 | * |
|
2111 | * @return static |
|
2112 | */ |
|
2113 | public function lastSubstringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
2114 | { |
|
2115 | return static::create( |
|
2116 | $this->utf8::str_isubstr_last( |
|
2117 | $this->str, |
|
2118 | $needle, |
|
2119 | $beforeNeedle, |
|
2120 | $this->encoding |
|
2121 | ), |
|
2122 | $this->encoding |
|
@@ 3472-3478 (lines=7) @@ | ||
3469 | * |
|
3470 | * @return static |
|
3471 | */ |
|
3472 | public function substringOf(string $needle, bool $beforeNeedle = false): self |
|
3473 | { |
|
3474 | return static::create( |
|
3475 | $this->utf8::str_substr_first( |
|
3476 | $this->str, |
|
3477 | $needle, |
|
3478 | $beforeNeedle, |
|
3479 | $this->encoding |
|
3480 | ), |
|
3481 | $this->encoding |
|
@@ 3496-3502 (lines=7) @@ | ||
3493 | * |
|
3494 | * @return static |
|
3495 | */ |
|
3496 | public function substringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
3497 | { |
|
3498 | return static::create( |
|
3499 | $this->utf8::str_isubstr_first( |
|
3500 | $this->str, |
|
3501 | $needle, |
|
3502 | $beforeNeedle, |
|
3503 | $this->encoding |
|
3504 | ), |
|
3505 | $this->encoding |