26 #ifndef STATICLIB_PION_ALGORITHM_HPP
27 #define STATICLIB_PION_ALGORITHM_HPP
35 #include "staticlib/config.hpp"
36 #include "staticlib/utils.hpp"
54 return (c >= 0 && c <= 127);
64 return ( (c >= 0 && c <= 31) || c == 127);
75 case '(':
case ')':
case '<':
case '>':
case '@':
76 case ',':
case ';':
case ':':
case '\\':
case '"':
77 case '/':
case '[':
case ']':
case '?':
case '=':
78 case '{':
case '}':
case ' ':
case '\t':
96 seed ^= hasher(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
103 struct iequal_to : std::binary_function<std::string, std::string, bool> {
111 bool operator()(std::string
const& x, std::string
const& y)
const {
112 return sl::utils::iequals(x, y);
120 struct ihash : std::unary_function<std::string, std::size_t> {
128 std::size_t seed = 0;
129 for (std::string::const_iterator it = x.begin(); it != x.end(); ++it) {
141 #endif // STATICLIB_PION_ALGORITHM_HPP