MCPcopy Create free account
hub / github.com/OpenImageDebugger/OpenImageDebugger / extension_for

Function extension_for

src/host/ui/export_dialog.cpp:43–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41constexpr std::string_view kOctExt = ".oct";
42
43std::string_view extension_for(oid::BufferExporter::OutputType format) {
44 return format == oid::BufferExporter::OutputType::Bitmap ? kPngExt
45 : kOctExt;
46}
47
48bool ends_with(std::string_view s, std::string_view suffix) {
49 return s.size() >= suffix.size() &&

Callers 2

default_export_pathFunction · 0.85
apply_format_extensionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected