| @@ 2416-2424 (lines=9) @@ | ||
| 2413 | * @return static |
|
| 2414 | * <p>Object with all characters of $str being lowercase.</p> |
|
| 2415 | */ |
|
| 2416 | public function toLowerCase($tryToKeepStringLength = false, $lang = null): self |
|
| 2417 | { |
|
| 2418 | return static::create( |
|
| 2419 | $this->utf8::strtolower( |
|
| 2420 | $this->str, |
|
| 2421 | $this->encoding, |
|
| 2422 | false, |
|
| 2423 | $lang, |
|
| 2424 | $tryToKeepStringLength |
|
| 2425 | ), |
|
| 2426 | $this->encoding |
|
| 2427 | ); |
|
| @@ 2536-2542 (lines=7) @@ | ||
| 2533 | * @return static |
|
| 2534 | * <p>Object with all characters of $str being uppercase.</p> |
|
| 2535 | */ |
|
| 2536 | public function toUpperCase($tryToKeepStringLength = false, $lang = null): self |
|
| 2537 | { |
|
| 2538 | return static::create( |
|
| 2539 | $this->utf8::strtoupper($this->str, $this->encoding, false, $lang, $tryToKeepStringLength), |
|
| 2540 | $this->encoding |
|
| 2541 | ); |
|
| 2542 | } |
|
| 2543 | ||
| 2544 | /** |
|
| 2545 | * Returns a string with whitespace removed from the start and end of the |
|