| 318 | // Compare strings for equality |
| 319 | template<class Ch> |
| 320 | inline bool compare(const Ch *p1, std::size_t size1, const Ch *p2, std::size_t size2, bool case_sensitive) |
| 321 | { |
| 322 | if (size1 != size2) |
| 323 | return false; |
| 324 | if (case_sensitive) |
| 325 | { |
| 326 | for (const Ch *end = p1 + size1; p1 < end; ++p1, ++p2) |
| 327 | if (*p1 != *p2) |
| 328 | return false; |
| 329 | } |
| 330 | else |
| 331 | { |
| 332 | for (const Ch *end = p1 + size1; p1 < end; ++p1, ++p2) |
| 333 | if (lookup_tables<0>::lookup_upcase[static_cast<unsigned char>(*p1)] != lookup_tables<0>::lookup_upcase[static_cast<unsigned char>(*p2)]) |
| 334 | return false; |
| 335 | } |
| 336 | return true; |
| 337 | } |
| 338 | } |
| 339 | //! \endcond |
| 340 |
no outgoing calls
no test coverage detected