@@ 3547-3555 (lines=9) @@ | ||
3544 | * @return static |
|
3545 | * <p>Object with all characters of $str being lowercase.</p> |
|
3546 | */ |
|
3547 | public function toLowerCase($tryToKeepStringLength = false, $lang = null): self |
|
3548 | { |
|
3549 | return static::create( |
|
3550 | $this->utf8::strtolower( |
|
3551 | $this->str, |
|
3552 | $this->encoding, |
|
3553 | false, |
|
3554 | $lang, |
|
3555 | $tryToKeepStringLength |
|
3556 | ), |
|
3557 | $this->encoding |
|
3558 | ); |
|
@@ 3679-3685 (lines=7) @@ | ||
3676 | * @return static |
|
3677 | * <p>Object with all characters of $str being uppercase.</p> |
|
3678 | */ |
|
3679 | public function toUpperCase($tryToKeepStringLength = false, $lang = null): self |
|
3680 | { |
|
3681 | return static::create( |
|
3682 | $this->utf8::strtoupper($this->str, $this->encoding, false, $lang, $tryToKeepStringLength), |
|
3683 | $this->encoding |
|
3684 | ); |
|
3685 | } |
|
3686 | ||
3687 | /** |
|
3688 | * Returns a string with whitespace removed from the start and end of the |