[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes:

| | Feel free to patch.
>
| rrrr is a 2 byte integer  so just loose the less important ones >> 8
| rrr  is a 1.5 byte integer  >> 4  (does this format even exist?)
| r    is a 0.5 byte integer << 4 (does this format exist?)
>
| with rr then just do nothing.

besides ... why are we going through int conversions and shifts
anyway...?

if size == 13 then the format is #rrrrggggbbbb

just remove the two last rr's gg's and bb's...

string str("#rrrrggggbbbb");
str.erase(3, 2); // #rrggggbbbb
str.erase(5, 2); // #rrggbbbb
str.erase(7, 2));

return str;

What is the problem with this?

-- 
        Lgb

Reply via email to