1 |
/*************************************************************************** |
/*************************************************************************** |
2 |
* * |
* * |
3 |
* sf2extract tool: Copyright (C) 2015 by Christian Schoenebeck * |
* sf2extract tool: Copyright (C) 2015 - 2017 by Christian Schoenebeck * |
4 |
* <cuse@users.sf.net> * |
* <cuse@users.sf.net> * |
5 |
* * |
* * |
6 |
* SF2 C++ Library: Copyright (C) 2009-2010 by Grigor Iliev * |
* SF2 C++ Library: Copyright (C) 2009-2010 by Grigor Iliev * |
232 |
} |
} |
233 |
|
|
234 |
static bool endsWith(const string& haystack, const string& needle) { |
static bool endsWith(const string& haystack, const string& needle) { |
235 |
|
if (haystack.size() < needle.size()) return false; |
236 |
return haystack.substr(haystack.size() - needle.size(), needle.size()) == needle; |
return haystack.substr(haystack.size() - needle.size(), needle.size()) == needle; |
237 |
} |
} |
238 |
|
|