| 1194 | |
| 1195 | // Compares two characters for equality. |
| 1196 | template <typename Char> auto equal2(const Char* lhs, const char* rhs) -> bool { |
| 1197 | return lhs[0] == Char(rhs[0]) && lhs[1] == Char(rhs[1]); |
| 1198 | } |
| 1199 | inline auto equal2(const char* lhs, const char* rhs) -> bool { |
| 1200 | return memcmp(lhs, rhs, 2) == 0; |
| 1201 | } |