MCPcopy Create free account
hub / github.com/boostorg/filesystem / stem

Method stem

src/path.cpp:369–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367 }
368
369 path path::stem() const
370 {
371 path name(filename());
372 if (name == dot_path || name == dot_dot_path) return name;
373 size_type pos(name.m_pathname.rfind(dot));
374 return pos == string_type::npos
375 ? name
376 : path(name.m_pathname.c_str(), name.m_pathname.c_str() + pos);
377 }
378
379 path path::extension() const
380 {

Callers 5

mainFunction · 0.80
mainFunction · 0.80
test_decompositionsFunction · 0.80
basenameFunction · 0.80

Calls 1

pathFunction · 0.50

Tested by 2

test_decompositionsFunction · 0.64