String case: Difference between revisions
Content added Content deleted
No edit summary |
(→[[Toka]]: Updated to work with Toka R1) |
||
Line 292: | Line 292: | ||
needs ctype |
needs ctype |
||
[ i 1- ] is |
[ i 1 - ] is i |
||
[ |
[ string.getLength 0 [ dup i + c@ toupper over i + c! ] countedLoop ] is string.toUpper |
||
[ |
[ string.getLength 0 [ dup i + c@ tolower over i + c! ] countedLoop ] is string.toLower |
||
" heLlO wORld" |
" heLlO wORld" string.toUpper type cr |
||
" HeLlO wORld" |
" HeLlO wORld" string.toLower type cr |