| 35 | } |
| 36 | |
| 37 | bool has_ending (std::string const full_string, std::string const &ending) { |
| 38 | if(full_string.length() >= ending.length()) { |
| 39 | return (0 == full_string.compare(full_string.length() - ending.length(), ending.length(), ending)); |
| 40 | } else { |
| 41 | return false; |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | // ---------------------------------------------------------------------------------------- |
| 46 |
no test coverage detected