String.to_uppercase
String.to_uppercase
Function
Convert the string to uppercase.
Syntax
string.to_uppercase()
Parameters
No parameters.
Return value
| Type | Description |
|---|---|
| String | Returns the new string after capitalization. |
Example
text = 'Hello BT' result = text.to_uppercase() // Output: HELLO BT print result
Notes
- Use Rust string capitalization conversion rules.