1 #ifndef __JLANG__JWHITESPACESFACET__ 
    2 #define __JLANG__JWHITESPACESFACET__ 
   13 namespace JPP { 
using namespace JLANG; }
 
   37     public  std::ctype<char>
 
   62                       const std::string& ws) : 
 
   77                    const std::string& ws)
 
   81       char buffer[table_size];
 
   83       for (
unsigned int i = 0; i != table_size; ++i) {
 
   87       use_facet<JMask::ctype>(
loc).
is(buffer, buffer + table_size, 
mask_set);
 
   89       for (
unsigned int i = 0; i != table_size; ++i) {
 
   90         if (
mask_set[i] & JMask::ctype::space) {
 
   95       for (string::const_iterator i = ws.begin(); i != ws.end(); ++i) {
 
   96         mask_set[(int) *i] |= JMask::ctype::space;
 
ctype::mask mask_set[ctype::table_size]
 
void configure(const std::locale &loc, const std::string &ws)
Configure. 
 
Auxiliary class to ensure that the mask set is defined prior to the ctype<>() constructor call...
 
JWhiteSpacesFacet(const std::locale &loc, const char ws)
Constructor. 
 
Auxiliary class to specify white space character(s) in currect locale. 
 
JWhiteSpacesFacet(const std::locale &loc, const std::string &ws)
Constructor.