Page 1 of 1

Simple compression?

Posted: Sat Dec 22, 2012 12:56 am
by Cheatmasterbw
I've been trying to make functions that can compress and decompress strings, but what I have so far is really inefficient
The strings won't contain numbers (but can contain any other character), and will compress like this:
Code: Select all
ABBCCCDDDDEEEEEFFFFFFFFFF!!?
will convert to...
A2B3C4D5E10F2!?
Can you make functions that compress and decompress like this? Thanks!

Re: Simple compression?

Posted: Sat Dec 22, 2012 1:00 am
by Shim

Re: Simple compression?

Posted: Sat Dec 22, 2012 1:05 am
by Cheatmasterbw
That might be a lot simpler than what I was going to do, and probably more effective.
There's only one problem... I can't find a way to use clsCompressedString...

EDIT: Never mind, it was in the source files. Thanks!