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

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

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

revision 3174 by schoenebeck, Thu May 22 15:17:09 2014 UTC revision 3175 by schoenebeck, Thu May 11 11:34:19 2017 UTC
# Line 1  Line 1 
1  /***************************************************************************  /***************************************************************************
2   *                                                                         *   *                                                                         *
3   *   Copyright (C) 2014 Christian Schoenebeck                              *   *   Copyright (C) 2014 - 2017 Christian Schoenebeck                       *
4   *                      <cuse@users.sourceforge.net>                       *   *                      <cuse@users.sourceforge.net>                       *
5   *                                                                         *   *                                                                         *
6   *   This program is part of libgig.                                       *   *   This program is part of libgig.                                       *
# Line 54  static void printUsage() { Line 54  static void printUsage() {
54  }  }
55    
56  static bool endsWith(const string& haystack, const string& needle) {  static bool endsWith(const string& haystack, const string& needle) {
57        if (haystack.size() < needle.size()) return false;
58      return haystack.substr(haystack.size() - needle.size(), needle.size()) == needle;      return haystack.substr(haystack.size() - needle.size(), needle.size()) == needle;
59  }  }
60    

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

  ViewVC Help
Powered by ViewVC