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

Function ends_with

src/host/ui/export_dialog.cpp:48–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48bool ends_with(std::string_view s, std::string_view suffix) {
49 return s.size() >= suffix.size() &&
50 s.compare(s.size() - suffix.size(), suffix.size(), suffix) == 0;
51}
52
53// Copies `s` into `buf` as a null-terminated C string, truncating to fit
54// if necessary (path_buf is a fixed-size ImGui InputText backing buffer).

Callers 1

apply_format_extensionFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected