checks if a fullString ends with a certain ending
| 446 | |
| 447 | /// checks if a fullString ends with a certain ending |
| 448 | bool StringEndsWith(const std::string& fullString, const std::string& ending) { |
| 449 | if (ending.size() > fullString.size()) return false; |
| 450 | return fullString.compare(fullString.size() - ending.size(), ending.size(), ending) == 0; |
| 451 | } |
| 452 | |
| 453 | /// <summary> |
| 454 | /// Check if file has a certain file extension (case insensitive) |
nothing calls this directly
no outgoing calls
no test coverage detected