| @@ 1888-1894 (lines=7) @@ | ||
| 1885 | * |
|
| 1886 | * @return static |
|
| 1887 | */ |
|
| 1888 | public function lastSubstringOf(string $needle, bool $beforeNeedle = false): self |
|
| 1889 | { |
|
| 1890 | return static::create( |
|
| 1891 | $this->utf8::str_substr_last( |
|
| 1892 | $this->str, |
|
| 1893 | $needle, |
|
| 1894 | $beforeNeedle, |
|
| 1895 | $this->encoding |
|
| 1896 | ), |
|
| 1897 | $this->encoding |
|
| @@ 1912-1918 (lines=7) @@ | ||
| 1909 | * |
|
| 1910 | * @return static |
|
| 1911 | */ |
|
| 1912 | public function lastSubstringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
| 1913 | { |
|
| 1914 | return static::create( |
|
| 1915 | $this->utf8::str_isubstr_last( |
|
| 1916 | $this->str, |
|
| 1917 | $needle, |
|
| 1918 | $beforeNeedle, |
|
| 1919 | $this->encoding |
|
| 1920 | ), |
|
| 1921 | $this->encoding |
|
| @@ 3102-3108 (lines=7) @@ | ||
| 3099 | * |
|
| 3100 | * @return static |
|
| 3101 | */ |
|
| 3102 | public function substringOf(string $needle, bool $beforeNeedle = false): self |
|
| 3103 | { |
|
| 3104 | return static::create( |
|
| 3105 | $this->utf8::str_substr_first( |
|
| 3106 | $this->str, |
|
| 3107 | $needle, |
|
| 3108 | $beforeNeedle, |
|
| 3109 | $this->encoding |
|
| 3110 | ), |
|
| 3111 | $this->encoding |
|
| @@ 3126-3132 (lines=7) @@ | ||
| 3123 | * |
|
| 3124 | * @return static |
|
| 3125 | */ |
|
| 3126 | public function substringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
| 3127 | { |
|
| 3128 | return static::create( |
|
| 3129 | $this->utf8::str_isubstr_first( |
|
| 3130 | $this->str, |
|
| 3131 | $needle, |
|
| 3132 | $beforeNeedle, |
|
| 3133 | $this->encoding |
|
| 3134 | ), |
|
| 3135 | $this->encoding |
|