| @@ 1185-1191 (lines=7) @@ | ||
| 1182 | * |
|
| 1183 | * @return static |
|
| 1184 | */ |
|
| 1185 | public function lastSubstringOf(string $needle, bool $beforeNeedle = false): self |
|
| 1186 | { |
|
| 1187 | return static::create( |
|
| 1188 | $this->utf8::str_substr_last( |
|
| 1189 | $this->str, |
|
| 1190 | $needle, |
|
| 1191 | $beforeNeedle, |
|
| 1192 | $this->encoding |
|
| 1193 | ), |
|
| 1194 | $this->encoding |
|
| @@ 1207-1213 (lines=7) @@ | ||
| 1204 | * |
|
| 1205 | * @return static |
|
| 1206 | */ |
|
| 1207 | public function lastSubstringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
| 1208 | { |
|
| 1209 | return static::create( |
|
| 1210 | $this->utf8::str_isubstr_last( |
|
| 1211 | $this->str, |
|
| 1212 | $needle, |
|
| 1213 | $beforeNeedle, |
|
| 1214 | $this->encoding |
|
| 1215 | ), |
|
| 1216 | $this->encoding |
|
| @@ 2077-2083 (lines=7) @@ | ||
| 2074 | * |
|
| 2075 | * @return static |
|
| 2076 | */ |
|
| 2077 | public function substringOf(string $needle, bool $beforeNeedle = false): self |
|
| 2078 | { |
|
| 2079 | return static::create( |
|
| 2080 | $this->utf8::str_substr_first( |
|
| 2081 | $this->str, |
|
| 2082 | $needle, |
|
| 2083 | $beforeNeedle, |
|
| 2084 | $this->encoding |
|
| 2085 | ), |
|
| 2086 | $this->encoding |
|
| @@ 2099-2105 (lines=7) @@ | ||
| 2096 | * |
|
| 2097 | * @return static |
|
| 2098 | */ |
|
| 2099 | public function substringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
| 2100 | { |
|
| 2101 | return static::create( |
|
| 2102 | $this->utf8::str_isubstr_first( |
|
| 2103 | $this->str, |
|
| 2104 | $needle, |
|
| 2105 | $beforeNeedle, |
|
| 2106 | $this->encoding |
|
| 2107 | ), |
|
| 2108 | $this->encoding |
|