RosettaCodeData/Task/String-case/Fantom/string-case.fantom
2023-07-01 13:44:08 -04:00

10 lines
312 B
Text

fansh> a := "alphaBETA"
alphaBETA
fansh> a.upper // convert whole string to upper case
ALPHABETA
fansh> a.lower // convert whole string to lower case
alphabeta
fansh> a.capitalize // make sure first letter is capital
AlphaBETA
fansh> "BETAalpha".decapitalize // make sure first letter is not capital
bETAalpha