10 Jun
2008
10 Jun
'08
12:56 p.m.
I've looked through the documentation and Googled, but I cannot find any info on the topic. If I want to find a file named 'System.dll', but on some systems the file is named 'system.DLL' or 'SYSTEM.DLL', etc. If I could could do something like this: if (boost::filesystem::is_regular(itr->path())) { std::cout << itr->path().lower() << std::endl; } Notice the .lower() In this way, each path would be lowercase and I could search for only 'system.dll' and .lower() would find any occurrence of that filename, no matter the case. I wonder how others do this today? Do you use transform or tolower from another library? Thank you