MCPcopy Create free account
hub / github.com/crownengine/crown / extension

Function extension

src/core/filesystem/path.cpp:85–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 }
84
85 const char *extension(const char *path)
86 {
87 CE_ENSURE(NULL != path);
88 const char *bn = basename(path);
89 const char *ld = strrchr(bn, '.');
90 return (ld == NULL || ld == bn) ? NULL : ld + 1;
91 }
92
93 bool has_trailing_separator(const char *path)
94 {

Callers 2

test_pathFunction · 0.85
all_paths_of_typeMethod · 0.85

Calls 1

basenameFunction · 0.85

Tested by 1

test_pathFunction · 0.68