| @@ 2778-2786 (lines=9) @@ | ||
| 2775 | * @return static |
|
| 2776 | * <p>Object with all characters of $str being lowercase.</p> |
|
| 2777 | */ |
|
| 2778 | public function toLowerCase($tryToKeepStringLength = false, $lang = null): self |
|
| 2779 | { |
|
| 2780 | return static::create( |
|
| 2781 | $this->utf8::strtolower( |
|
| 2782 | $this->str, |
|
| 2783 | $this->encoding, |
|
| 2784 | false, |
|
| 2785 | $lang, |
|
| 2786 | $tryToKeepStringLength |
|
| 2787 | ), |
|
| 2788 | $this->encoding |
|
| 2789 | ); |
|
| @@ 2910-2916 (lines=7) @@ | ||
| 2907 | * @return static |
|
| 2908 | * <p>Object with all characters of $str being uppercase.</p> |
|
| 2909 | */ |
|
| 2910 | public function toUpperCase($tryToKeepStringLength = false, $lang = null): self |
|
| 2911 | { |
|
| 2912 | return static::create( |
|
| 2913 | $this->utf8::strtoupper($this->str, $this->encoding, false, $lang, $tryToKeepStringLength), |
|
| 2914 | $this->encoding |
|
| 2915 | ); |
|
| 2916 | } |
|
| 2917 | ||
| 2918 | /** |
|
| 2919 | * Returns a string with whitespace removed from the start and end of the |
|