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

Method stem_v3

src/path.cpp:855–865  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

853}
854
855BOOST_FILESYSTEM_DECL path path_algorithms::stem_v3(path const& p)
856{
857 path name(path_algorithms::filename_v3(p));
858 if (path_algorithms::compare_v4(name, detail::dot_path()) != 0 && path_algorithms::compare_v4(name, detail::dot_dot_path()) != 0)
859 {
860 size_type pos = name.m_pathname.rfind(path::dot);
861 if (pos != string_type::npos)
862 name.m_pathname.erase(name.m_pathname.begin() + pos, name.m_pathname.end());
863 }
864 return name;
865}
866
867BOOST_FILESYSTEM_DECL path path_algorithms::stem_v4(path const& p)
868{

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected