MCPcopy Create free account
hub / github.com/YtFlow/Maple / getNormalizedExtentionFromPath

Function getNormalizedExtentionFromPath

Maple.App/MainPage.cpp:19–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 3

ImportFilesMethod · 0.85
SetAsDefaultMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected