MCPcopy Create free account
hub / github.com/PABannier/sam3.cpp / basename_of

Function basename_of

examples/main_image.cpp:42–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40static constexpr int N_COLORS = sizeof(INSTANCE_COLORS) / sizeof(INSTANCE_COLORS[0]);
41
42static std::string basename_of(const std::string& path) {
43 auto pos = path.find_last_of("/\\");
44 return (pos == std::string::npos) ? path : path.substr(pos + 1);
45}
46
47static void apply_theme() {
48 ImGuiStyle& s = ImGui::GetStyle();

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected