* @brief Test if a string ends with a given suffix. */
| 211 | * @brief Test if a string ends with a given suffix. |
| 212 | */ |
| 213 | static bool ends_with( |
| 214 | const std::string& str, |
| 215 | const std::string& suffix |
| 216 | ) { |
| 217 | return (str.size() >= suffix.size()) && |
| 218 | (0 == str.compare(str.size() - suffix.size(), suffix.size(), suffix)); |
| 219 | } |
| 220 | |
| 221 | /** |
| 222 | * @brief Runner callback function for a compression worker thread. |
no test coverage detected