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;
Auxiliary class to ensure that the mask set is defined prior to the ctype<>() constructor call.
ctype::mask mask_set[ctype::table_size]
Auxiliary class to specify white space character(s) in currect locale.
JWhiteSpacesFacet(const std::locale &loc, const std::string &ws)
Constructor.
JWhiteSpacesFacet(const std::locale &loc, const char ws)
Constructor.
void configure(const std::locale &loc, const std::string &ws)
Configure.
Auxiliary classes and methods for language specific functionality.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).