| @@ 1274-1280 (lines=7) @@ | ||
| 1271 | * |
|
| 1272 | * @return static |
|
| 1273 | */ |
|
| 1274 | public function lastSubstringOf(string $needle, bool $beforeNeedle = false): self |
|
| 1275 | { |
|
| 1276 | return static::create( |
|
| 1277 | $this->utf8::str_substr_last( |
|
| 1278 | $this->str, |
|
| 1279 | $needle, |
|
| 1280 | $beforeNeedle, |
|
| 1281 | $this->encoding |
|
| 1282 | ), |
|
| 1283 | $this->encoding |
|
| @@ 1296-1302 (lines=7) @@ | ||
| 1293 | * |
|
| 1294 | * @return static |
|
| 1295 | */ |
|
| 1296 | public function lastSubstringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
| 1297 | { |
|
| 1298 | return static::create( |
|
| 1299 | $this->utf8::str_isubstr_last( |
|
| 1300 | $this->str, |
|
| 1301 | $needle, |
|
| 1302 | $beforeNeedle, |
|
| 1303 | $this->encoding |
|
| 1304 | ), |
|
| 1305 | $this->encoding |
|
| @@ 2285-2291 (lines=7) @@ | ||
| 2282 | * |
|
| 2283 | * @return static |
|
| 2284 | */ |
|
| 2285 | public function substringOf(string $needle, bool $beforeNeedle = false): self |
|
| 2286 | { |
|
| 2287 | return static::create( |
|
| 2288 | $this->utf8::str_substr_first( |
|
| 2289 | $this->str, |
|
| 2290 | $needle, |
|
| 2291 | $beforeNeedle, |
|
| 2292 | $this->encoding |
|
| 2293 | ), |
|
| 2294 | $this->encoding |
|
| @@ 2307-2313 (lines=7) @@ | ||
| 2304 | * |
|
| 2305 | * @return static |
|
| 2306 | */ |
|
| 2307 | public function substringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
| 2308 | { |
|
| 2309 | return static::create( |
|
| 2310 | $this->utf8::str_isubstr_first( |
|
| 2311 | $this->str, |
|
| 2312 | $needle, |
|
| 2313 | $beforeNeedle, |
|
| 2314 | $this->encoding |
|
| 2315 | ), |
|
| 2316 | $this->encoding |
|