toupper
toupper(x)
Put text in upper casing
Parameters
Name | Type | Description | Default |
---|---|---|---|
x | Union[str, List[str]] | A str or a list of str | required |
Returns
Name | Type | Description |
---|---|---|
Union[str, List[str]] | a str with x in upper case or a list of upper cased elements if in x a list is provided |
Examples
>>> from rlike import *
>>> toupper('Hello World')
'HELLO WORLD'
>>> toupper(['Hello World', 'How are you'])
'HELLO WORLD', 'HOW ARE YOU'] [