| @@ 2327-2335 (lines=9) @@ | ||
| 2324 | * @return static |
|
| 2325 | * <p>Object with all characters of $str being lowercase.</p> |
|
| 2326 | */ |
|
| 2327 | public function toLowerCase($tryToKeepStringLength = false, $lang = null): self |
|
| 2328 | { |
|
| 2329 | return static::create( |
|
| 2330 | $this->utf8::strtolower( |
|
| 2331 | $this->str, |
|
| 2332 | $this->encoding, |
|
| 2333 | false, |
|
| 2334 | $lang, |
|
| 2335 | $tryToKeepStringLength |
|
| 2336 | ), |
|
| 2337 | $this->encoding |
|
| 2338 | ); |
|
| @@ 2427-2433 (lines=7) @@ | ||
| 2424 | * @return static |
|
| 2425 | * <p>Object with all characters of $str being uppercase.</p> |
|
| 2426 | */ |
|
| 2427 | public function toUpperCase($tryToKeepStringLength = false, $lang = null): self |
|
| 2428 | { |
|
| 2429 | return static::create( |
|
| 2430 | $this->utf8::strtoupper($this->str, $this->encoding, false, $lang, $tryToKeepStringLength), |
|
| 2431 | $this->encoding |
|
| 2432 | ); |
|
| 2433 | } |
|
| 2434 | ||
| 2435 | /** |
|
| 2436 | * Returns a string with whitespace removed from the start and end of the |
|