| @@ 1926-1932 (lines=7) @@ | ||
| 1923 | * |
|
| 1924 | * @return static |
|
| 1925 | */ |
|
| 1926 | public function lastSubstringOf(string $needle, bool $beforeNeedle = false): self |
|
| 1927 | { |
|
| 1928 | return static::create( |
|
| 1929 | $this->utf8::str_substr_last( |
|
| 1930 | $this->str, |
|
| 1931 | $needle, |
|
| 1932 | $beforeNeedle, |
|
| 1933 | $this->encoding |
|
| 1934 | ), |
|
| 1935 | $this->encoding |
|
| @@ 1950-1956 (lines=7) @@ | ||
| 1947 | * |
|
| 1948 | * @return static |
|
| 1949 | */ |
|
| 1950 | public function lastSubstringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
| 1951 | { |
|
| 1952 | return static::create( |
|
| 1953 | $this->utf8::str_isubstr_last( |
|
| 1954 | $this->str, |
|
| 1955 | $needle, |
|
| 1956 | $beforeNeedle, |
|
| 1957 | $this->encoding |
|
| 1958 | ), |
|
| 1959 | $this->encoding |
|
| @@ 3177-3183 (lines=7) @@ | ||
| 3174 | * |
|
| 3175 | * @return static |
|
| 3176 | */ |
|
| 3177 | public function substringOf(string $needle, bool $beforeNeedle = false): self |
|
| 3178 | { |
|
| 3179 | return static::create( |
|
| 3180 | $this->utf8::str_substr_first( |
|
| 3181 | $this->str, |
|
| 3182 | $needle, |
|
| 3183 | $beforeNeedle, |
|
| 3184 | $this->encoding |
|
| 3185 | ), |
|
| 3186 | $this->encoding |
|
| @@ 3201-3207 (lines=7) @@ | ||
| 3198 | * |
|
| 3199 | * @return static |
|
| 3200 | */ |
|
| 3201 | public function substringOfIgnoreCase(string $needle, bool $beforeNeedle = false): self |
|
| 3202 | { |
|
| 3203 | return static::create( |
|
| 3204 | $this->utf8::str_isubstr_first( |
|
| 3205 | $this->str, |
|
| 3206 | $needle, |
|
| 3207 | $beforeNeedle, |
|
| 3208 | $this->encoding |
|
| 3209 | ), |
|
| 3210 | $this->encoding |
|