/[svn]/libgig/trunk/src/helper.h
ViewVC logotype

Diff of /libgig/trunk/src/helper.h

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

revision 3184 by schoenebeck, Wed Dec 14 18:55:08 2016 UTC revision 3185 by schoenebeck, Wed May 17 15:42:58 2017 UTC
# Line 2  Line 2 
2   *                                                                         *   *                                                                         *
3   *   libgig - C++ cross-platform Gigasampler format file access library    *   *   libgig - C++ cross-platform Gigasampler format file access library    *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003-2014 by Christian Schoenebeck                      *   *   Copyright (C) 2003-2017 by Christian Schoenebeck                      *
6   *                              <cuse@users.sourceforge.net>               *   *                              <cuse@users.sourceforge.net>               *
7   *                                                                         *   *                                                                         *
8   *   This library is free software; you can redistribute it and/or modify  *   *   This library is free software; you can redistribute it and/or modify  *
# Line 27  Line 27 
27  #include <string.h>  #include <string.h>
28  #include <string>  #include <string>
29  #include <sstream>  #include <sstream>
30    #include <algorithm>
31    
32  #if defined(WIN32) && !HAVE_CONFIG_H  #if defined(WIN32) && !HAVE_CONFIG_H
33  # include "../win32/libgig_private.h" // like config.h, automatically generated by Dev-C++  # include "../win32/libgig_private.h" // like config.h, automatically generated by Dev-C++
# Line 45  template<class T> inline std::string ToS Line 46  template<class T> inline std::string ToS
46      return ss.str();      return ss.str();
47  }  }
48    
49    inline std::string toLowerCase(std::string s) {
50        std::transform(s.begin(), s.end(), s.begin(), ::tolower);
51        return s;
52    }
53    
54  inline long Min(long A, long B) {  inline long Min(long A, long B) {
55      return (A > B) ? B : A;      return (A > B) ? B : A;
56  }  }

Legend:
Removed from v.3184  
changed lines
  Added in v.3185

  ViewVC Help
Powered by ViewVC