o
o copied to clipboard
Compressing and uncompressing strings to numbers
'īu
should output 300
because ī
has a unicode value of 300. u
takes a string and uncompresses it to a number, while c
compresses a number to a string. I don't know if the latter is needed. Here is the Java implementation.
Well, Unicode isn't supported yet. C deals with stuff on a per-byte basis, and O follows that. And changing char
to wchar_t
will print garbage on Linux. :/
I'll look a bit more into it.