| @@ 3390-3398 (lines=9) @@ | ||
| 3387 | * @return static |
|
| 3388 | * <p>Object with all characters of $str being lowercase.</p> |
|
| 3389 | */ |
|
| 3390 | public function toLowerCase($tryToKeepStringLength = false, $lang = null): self |
|
| 3391 | { |
|
| 3392 | return static::create( |
|
| 3393 | $this->utf8::strtolower( |
|
| 3394 | $this->str, |
|
| 3395 | $this->encoding, |
|
| 3396 | false, |
|
| 3397 | $lang, |
|
| 3398 | $tryToKeepStringLength |
|
| 3399 | ), |
|
| 3400 | $this->encoding |
|
| 3401 | ); |
|
| @@ 3522-3528 (lines=7) @@ | ||
| 3519 | * @return static |
|
| 3520 | * <p>Object with all characters of $str being uppercase.</p> |
|
| 3521 | */ |
|
| 3522 | public function toUpperCase($tryToKeepStringLength = false, $lang = null): self |
|
| 3523 | { |
|
| 3524 | return static::create( |
|
| 3525 | $this->utf8::strtoupper($this->str, $this->encoding, false, $lang, $tryToKeepStringLength), |
|
| 3526 | $this->encoding |
|
| 3527 | ); |
|
| 3528 | } |
|
| 3529 | ||
| 3530 | /** |
|
| 3531 | * Returns a string with whitespace removed from the start and end of the |
|