| @@ 3315-3323 (lines=9) @@ | ||
| 3312 | * @return static |
|
| 3313 | * <p>Object with all characters of $str being lowercase.</p> |
|
| 3314 | */ |
|
| 3315 | public function toLowerCase($tryToKeepStringLength = false, $lang = null): self |
|
| 3316 | { |
|
| 3317 | return static::create( |
|
| 3318 | $this->utf8::strtolower( |
|
| 3319 | $this->str, |
|
| 3320 | $this->encoding, |
|
| 3321 | false, |
|
| 3322 | $lang, |
|
| 3323 | $tryToKeepStringLength |
|
| 3324 | ), |
|
| 3325 | $this->encoding |
|
| 3326 | ); |
|
| @@ 3447-3453 (lines=7) @@ | ||
| 3444 | * @return static |
|
| 3445 | * <p>Object with all characters of $str being uppercase.</p> |
|
| 3446 | */ |
|
| 3447 | public function toUpperCase($tryToKeepStringLength = false, $lang = null): self |
|
| 3448 | { |
|
| 3449 | return static::create( |
|
| 3450 | $this->utf8::strtoupper($this->str, $this->encoding, false, $lang, $tryToKeepStringLength), |
|
| 3451 | $this->encoding |
|
| 3452 | ); |
|
| 3453 | } |
|
| 3454 | ||
| 3455 | /** |
|
| 3456 | * Returns a string with whitespace removed from the start and end of the |
|