| 178 | return L""; |
| 179 | } |
| 180 | static String from_wpath(const std::wstring& text, unsigned codepage = CP_UTF8) |
| 181 | { |
| 182 | const int length = ::WideCharToMultiByte(codepage, 0, text.c_str(), (int)text.size(), NULL, 0, NULL, NULL); |
| 183 | if(length > 0) |
| 184 | { |
| 185 | String str; |
| 186 | str.resize(length); |
| 187 | if(0 != ::WideCharToMultiByte(codepage, 0, text.c_str(), (int)text.size(), &str[0], (int)str.size(), NULL, NULL)) |
| 188 | return str; |
| 189 | } |
| 190 | return ""; |
| 191 | } |
| 192 | #endif |
| 193 | //----------------------------------------------------------------------- |
| 194 | void FileSystemArchive::findFiles(const String& pattern, bool recursive, |