* @brief Checks if the shorter string of @a str1 and @a str2 is a * case-insensitive prefix of the longer string. */
| 300 | * case-insensitive prefix of the longer string. |
| 301 | */ |
| 302 | bool isShorterPrefixOfCaseInsensitive(const std::string &str1, |
| 303 | const std::string &str2) { |
| 304 | const auto minLen = std::min(str1.length(), str2.length()); |
| 305 | return areEqualCaseInsensitive(str1.substr(0, minLen), str2.substr(0, minLen)); |
| 306 | } |
| 307 | |
| 308 | /** |
| 309 | * @brief Checks if @a str contains @a sub. |
no test coverage detected