}
}
else if(cur_op==M_READ)
- begin=end = buf;
+ begin = end = buf;
}
unsigned Buffered::do_write(const char *data, unsigned size)
// Give out whatever is in the buffer already
memcpy(data, begin, end-begin);
unsigned ret = end-begin;
- begin=end = buf;
+ begin = end = buf;
data += ret;
size -= ret;
public:
Fmt &width(unsigned w) { wd = w; return *this; }
Fmt &precision(unsigned p) { prec = p; return *this; }
- Fmt &showpos(bool s=true) { spos = s; return *this; }
+ Fmt &showpos(bool s = true) { spos = s; return *this; }
Fmt &fill(wchar_t f) { fillc = f; return *this; }
Fmt &fixed() { fmode = FIXED; return *this; }
Fmt &scientific() { fmode = SCI; return *this; }
- Fmt &showpoint(bool s=true) { spoint = s; return *this; }
- Fmt &showbase(bool s=true) { sbase = s; return *this; }
+ Fmt &showpoint(bool s = true) { spoint = s; return *this; }
+ Fmt &showbase(bool s = true) { sbase = s; return *this; }
Fmt &left() { align = LEFT; return *this; }
Fmt &right() { align = RIGHT; return *this; }
Fmt &dec() { base = DEC; return *this; }
Fmt &hex() { base = HEX; return *this; }
Fmt &oct() { base = OCT; return *this; }
Fmt &bin() { base = BIN; return *this; }
- Fmt &uppercase(bool u=true) { ucase = u; return *this; }
+ Fmt &uppercase(bool u = true) { ucase = u; return *this; }
Fmt &numeric() { type = NUM; return *this; }
Fmt &character() { type = CHAR; return *this; }
Fmt &string() { type = STR; return *this; }
unsigned char mask[32] = {0};
unsigned type = 0;
bool range = false;
- unsigned char first=0, last = 0;
+ unsigned char first = 0, last = 0;
for(string::const_iterator i=iter; i!=end; ++i)
{
unsigned char c = *i;