Boost logo

Boost Users :

From: brad_at_[hidden]
Date: 2008-06-10 08:56:05

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

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at