| @@ 2293-2301 (lines=9) @@ | ||
| 2290 | * @return static |
|
| 2291 | * <p>Object with all characters of $str being lowercase.</p> |
|
| 2292 | */ |
|
| 2293 | public function toLowerCase($tryToKeepStringLength = false, $lang = null): self |
|
| 2294 | { |
|
| 2295 | return static::create( |
|
| 2296 | $this->utf8::strtolower( |
|
| 2297 | $this->str, |
|
| 2298 | $this->encoding, |
|
| 2299 | false, |
|
| 2300 | $lang, |
|
| 2301 | $tryToKeepStringLength |
|
| 2302 | ), |
|
| 2303 | $this->encoding |
|
| 2304 | ); |
|
| @@ 2393-2399 (lines=7) @@ | ||
| 2390 | * @return static |
|
| 2391 | * <p>Object with all characters of $str being uppercase.</p> |
|
| 2392 | */ |
|
| 2393 | public function toUpperCase($tryToKeepStringLength = false, $lang = null): self |
|
| 2394 | { |
|
| 2395 | return static::create( |
|
| 2396 | $this->utf8::strtoupper($this->str, $this->encoding, false, $lang, $tryToKeepStringLength), |
|
| 2397 | $this->encoding |
|
| 2398 | ); |
|
| 2399 | } |
|
| 2400 | ||
| 2401 | /** |
|
| 2402 | * Returns a string with whitespace removed from the start and end of the |
|