string.upper
Return a modified version of str where all lowercase characters have been converted to uppercase. Special characters and numbers are not affected.
|
|||
Read a line from the user, then print string in all uppercase. | |||
Code | <nowiki>
print(string.upper(read()))
</nowiki>
|
||
Output | Depends on what the user wrote. For instance, if they were to enter Hello World , the string printed would be HELLO WORLD . |
Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Lua |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CC:Tweaked |
|
string.upper Function | |
---|---|
Syntax string.upper(
Colon notation: str:upper() | |
Returns | string |
API | string |
Source | Lua (source) |
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.