ctype(size_t refs = 0) : std::ctype<char>(&table[0], false, refs) { std::copy(classic_table(), classic_table() + table_size, table); table['/'] = (mask)space; table[' '] = (mask)punct; }
ctype_mod_ws(CharPred pred, int mode = REMOVE): ctype_table(pred, mode, classic_table()), std::ctype<char>(rc) {}
static const mask* make_table() { static std::vector<mask> v(classic_table(), classic_table() + table_size); v[','] |= space; // comma will be classified as whitespace return &v[0]; }
static const std::ctype_base::mask* get () { return classic_table (); }