# | Line 43 | Line 43 | |
---|---|---|
43 | ||
44 | #include <cctype> | |
45 | #include <locale> | |
46 | < | |
46 | > | #include <algorithm> |
47 | > | #include <functional> |
48 | namespace oopse { | |
49 | ||
50 | /** tolower functor */ | |
51 | struct toLowerFunctor : public std::unary_function<char, char> { | |
52 | < | toLowerFunctor( const std::locale& loc ) : loc( loc ) {} |
52 | > | toLowerFunctor( const std::locale& loc ) : loc_( loc ) {} |
53 | char operator()(char c) const { | |
54 | return std::tolower(c, loc_); | |
55 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |