Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef GNASH_STRINGPREDICATES_H
00020 #define GNASH_STRINGPREDICATES_H
00021
00022 #include <string>
00023 #include <algorithm>
00024 #include <functional>
00025 #include <boost/algorithm/string/predicate.hpp>
00026 #include <locale>
00027
00028 namespace gnash {
00029
00031 class StringNoCaseLessThan
00032 {
00033 public:
00034 bool operator()(const std::string& a, const std::string& b) const {
00035 return boost::ilexicographical_compare(a, b);
00036 }
00037 };
00038
00040 class StringNoCaseEqual :
00041 public std::binary_function<std::string, std::string, bool>
00042 {
00043 public:
00044 bool operator()(const std::string& a, const std::string& b) const {
00045 return boost::iequals(a, b);
00046 }
00047 };
00048
00049 }
00050
00051 #endif // GNASH_STRINGPREDICATES_H
00052
00053
00054
00055
00056