Wheel IDE

Online demo »

String, upper/lower case

String upper/lower case example

This demo declares a string and converts it to upper and lower case.

Code

#project "String Uppercase, lowercase example"

#include "lib/modules/standard.whl"
#include "lib/modules/string.whl"

proc main()
    clearConsole()

    ; Declare a string and print it in the console:
    string s = "Hello World"
    printS(s)

    ; Convert the string to upper case and print it in the console:
    toUpperCase(s)
    printS(s)

    ; Convert the string to lower case and print it in the console:
    toLowerCase(s)
    printS(s)
end