MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / transform_zip_list

Function transform_zip_list

src/ui/DownloadDictionariesDialog.cpp:909–920  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

907}
908
909static std::vector<FileDescription> transform_zip_list(const std::vector<std::wstring> &list) {
910 std::vector<FileDescription> l;
911 for (auto &f : list) {
912 if (!PathMatchSpec(f.c_str(), L"*.zip"))
913 continue;
914 FileDescription fd;
915 fd.path = f;
916 fd.title = f.substr(0, f.length() - 4);
917 l.push_back(fd);
918 }
919 return l;
920}
921
922void DownloadDictionariesDialog::update_file_list_async_web_proxy(const std::wstring &full_path) {
923 // temporary workaround for xsmf_control.h bug

Callers 2

Calls 2

c_strMethod · 0.80
substrMethod · 0.80

Tested by

no test coverage detected