MCPcopy Create free account
hub / github.com/PrismLauncher/PrismLauncher / getFilesystemTypeFuzzy

Function getFilesystemTypeFuzzy

launcher/FileSystem.cpp:1167–1177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1165}
1166
1167FilesystemType getFilesystemTypeFuzzy(const QString& name)
1168{
1169 for (auto iter = s_filesystem_type_names.constBegin(); iter != s_filesystem_type_names.constEnd(); ++iter) {
1170 auto fs_names = iter.value();
1171 for (auto fs_name : fs_names) {
1172 if (name.toUpper().contains(fs_name.toUpper()))
1173 return iter.key();
1174 }
1175 }
1176 return FilesystemType::UNKNOWN;
1177}
1178
1179FilesystemType getFilesystemType(const QString& name)
1180{

Callers 1

statFSFunction · 0.85

Calls 2

valueMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected