
Hi,
I'm developing for an embedded environment where we do not have a
complete c++ standard library available, and one of the things missing
is std::locale.
But even without this feature, I would very much like to use the boost
string algorithms ( split, tokenize, etc ). The only problem is that
they depends on std::locale. I have been looking around in the source
code, trying to see how easy it would be to add the needed ifdef's to
make it work without std::locale. Most of the code looks straight
forward to modify, but I'm stuck on this function:
struct is_classifiedF :
public predicate_facade
(m_Locale).is( m_Type, Ch ); }
private:
std::ctype_base::mask m_Type;
std::locale m_Locale;
};
I know what the code does, I just do not know how it does it. This is
without a doubt because I know nothing about locale, facet, etc.
What I would like is another version of this struct which did not
depend on std::locale, but simply assumed that the local used is "C".
Something like this:
struct is_classifiedF :
public predicate_facade