/[svn]/libgig/trunk/src/tools/sf2extract.cpp
ViewVC logotype

Diff of /libgig/trunk/src/tools/sf2extract.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3174 by schoenebeck, Thu Jul 2 20:04:16 2015 UTC revision 3175 by schoenebeck, Thu May 11 11:34:19 2017 UTC
# Line 1  Line 1 
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              *
# Line 232  inline void stripWhiteSpace(string& s) { Line 232  inline void stripWhiteSpace(string& s) {
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    

Legend:
Removed from v.3174  
changed lines
  Added in v.3175

  ViewVC Help
Powered by ViewVC