uppercase

Roman Thilenius's icon

sorry for beeing lazy. i need to convert lowercase single characters to uppercase single characters, but without regexp (sprintf would be ok). whats the best approach? better than creating a custom coll for translation?

DK's icon

javascript toUpperCase()?

Roman Thilenius's icon

after patching a whole bunch of nonsense i decided to simply do [- 32] in post-atoi world.

my next issue in this patch is ... how to concatenate symbols and numbers with the type not known before. s%s% wont work for ints of course. anything easy?

Roman Thilenius's icon

currently i am using this:

"3 A", "Z Z", "P 4"
[zl slice 1]
[route int] [route int]
[sprint %s%s] [sprint %s%u] [sprint %u%s] [sprint %u%u]

but i bet this can be done better.