| 151 | // ====================================================== |
| 152 | |
| 153 | inline bool CompareStringPieceWithoutCase( |
| 154 | const butil::StringPiece& s1, const char* s2) { |
| 155 | if (strlen(s2) != s1.size()) { |
| 156 | return false; |
| 157 | } |
| 158 | return strncasecmp(s1.data(), s2, s1.size()) == 0; |
| 159 | } |
| 160 | |
| 161 | ProtocolType StringToProtocolType(const butil::StringPiece& name, |
| 162 | bool print_log_on_unknown) { |
no test coverage detected