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 * |
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++ |
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 |
} |
} |