| 105 | /// [logger] |
| 106 | |
| 107 | bool hasSuffix(const std::string& str, const std::string& suffix) |
| 108 | { |
| 109 | if (str.length() < suffix.length()) |
| 110 | { |
| 111 | return false; |
| 112 | } |
| 113 | return str.compare(str.length() - suffix.length(), suffix.length(), suffix) == 0; |
| 114 | } |
| 115 | |
| 116 | /// [main] |
| 117 | /** |