| @@ 1249-1255 (lines=7) @@ | ||
| 1246 | * |
|
| 1247 | * @return static |
|
| 1248 | */ |
|
| 1249 | public function lastSubstringOf(string $needle, bool $beforeNeedle = false): self |
|
| 1250 | { |
|
| 1251 | return static::create( |
|
| 1252 | $this->utf8::str_substr_last( |
|
| 1253 | $this->str, |
|
| 1254 | $needle, |
|
| 1255 | $beforeNeedle, |
|
| 1256 | $this->encoding |
|
| 1257 | ), |
|
| 1258 | $this->encoding |
|
| @@ 1271-1277 (lines=7) @@ | ||
| 1268 | * |
|
| 1269 | * @return static |
|
| 1270 | */ |
|
| 1271 | public function lastSubstringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
| 1272 | { |
|
| 1273 | return static::create( |
|
| 1274 | $this->utf8::str_isubstr_last( |
|
| 1275 | $this->str, |
|
| 1276 | $needle, |
|
| 1277 | $beforeNeedle, |
|
| 1278 | $this->encoding |
|
| 1279 | ), |
|
| 1280 | $this->encoding |
|
| @@ 2188-2194 (lines=7) @@ | ||
| 2185 | * |
|
| 2186 | * @return static |
|
| 2187 | */ |
|
| 2188 | public function substringOf(string $needle, bool $beforeNeedle = false): self |
|
| 2189 | { |
|
| 2190 | return static::create( |
|
| 2191 | $this->utf8::str_substr_first( |
|
| 2192 | $this->str, |
|
| 2193 | $needle, |
|
| 2194 | $beforeNeedle, |
|
| 2195 | $this->encoding |
|
| 2196 | ), |
|
| 2197 | $this->encoding |
|
| @@ 2210-2216 (lines=7) @@ | ||
| 2207 | * |
|
| 2208 | * @return static |
|
| 2209 | */ |
|
| 2210 | public function substringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
| 2211 | { |
|
| 2212 | return static::create( |
|
| 2213 | $this->utf8::str_isubstr_first( |
|
| 2214 | $this->str, |
|
| 2215 | $needle, |
|
| 2216 | $beforeNeedle, |
|
| 2217 | $this->encoding |
|
| 2218 | ), |
|
| 2219 | $this->encoding |
|