1 #ifndef __JLANG__JWHITESPACESFACET__
2 #define __JLANG__JWHITESPACESFACET__
13 namespace JPP {
using namespace JLANG; }
37 public std::ctype<char>
47 const std::string& ws) :
53 char buffer[table_size];
55 for (
unsigned int i = 0; i != table_size; ++i) {
59 use_facet<JMask::ctype>(
loc).is(buffer, buffer + table_size,
mask_set);
61 for (
unsigned int i = 0; i != table_size; ++i) {
62 if (
mask_set[i] & JMask::ctype::space) {
67 for (string::const_iterator i = ws.begin(); i != ws.end(); ++i) {
68 mask_set[(int) *i] |= JMask::ctype::space;