Returns the bitwise complement of s.
| 296 | |
| 297 | // Returns the bitwise complement of s. |
| 298 | inline string StrNot(const string& s) { |
| 299 | string result; |
| 300 | for (string::const_iterator it = s.begin(); it != s.end(); ++it) |
| 301 | result.push_back(~*it); |
| 302 | return result; |
| 303 | } |
| 304 | |
| 305 | template <typename T> |
| 306 | void TestInvalidEncoding(const string& s) { |