| 17 | using namespace winrt::Windows::UI::Xaml::Media; |
| 18 | |
| 19 | std::string getNormalizedExtentionFromPath(const winrt::hstring& path) { |
| 20 | auto ext = std::filesystem::path(std::wstring_view(path)).extension().string(); |
| 21 | std::transform(ext.begin(), ext.end(), ext.begin(), [](const auto ch) { |
| 22 | return static_cast<char>(std::tolower(ch)); |
| 23 | }); |
| 24 | return ext; |
| 25 | } |
| 26 | |
| 27 | MainPage::MainPage() |
| 28 | { |
no outgoing calls
no test coverage detected