--- libgig/trunk/src/helper.h 2017/05/17 12:28:39 3184 +++ libgig/trunk/src/helper.h 2017/05/17 15:42:58 3185 @@ -2,7 +2,7 @@ * * * libgig - C++ cross-platform Gigasampler format file access library * * * - * Copyright (C) 2003-2014 by Christian Schoenebeck * + * Copyright (C) 2003-2017 by Christian Schoenebeck * * * * * * This library is free software; you can redistribute it and/or modify * @@ -27,6 +27,7 @@ #include #include #include +#include #if defined(WIN32) && !HAVE_CONFIG_H # include "../win32/libgig_private.h" // like config.h, automatically generated by Dev-C++ @@ -45,6 +46,11 @@ return ss.str(); } +inline std::string toLowerCase(std::string s) { + std::transform(s.begin(), s.end(), s.begin(), ::tolower); + return s; +} + inline long Min(long A, long B) { return (A > B) ? B : A; }