o icon indicating copy to clipboard operation
o copied to clipboard

Compressing and uncompressing strings to numbers

Open phase opened this issue 8 years ago • 1 comments

'ī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.

phase avatar Nov 16 '15 06:11 phase

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.

refi64 avatar Nov 16 '15 15:11 refi64