String case: Difference between revisions
m
→{{header|EasyLang}}
VincentARM (talk | contribs) (add task to aarch64 assembly raspberry pi 3) |
|||
Line 1,550:
EasyLang does not have string case functions. The functions provided below only work with ASCII.
<syntaxhighlight lang="easylang">
func$ toUpper s$ .
for
code = strcode
if code >= 97 and code <= 122
code -= 32
.
.
return res$
.
func$ toLower s$ .
for
code = strcode
if code >= 65 and code <= 90
code += 32
.
.
return res$
.
string$ = "alphaBETA"
print string$
print
</syntaxhighlight>
{{out}}
|