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

Method stem_v4

src/path.cpp:867–877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

865}
866
867BOOST_FILESYSTEM_DECL path path_algorithms::stem_v4(path const& p)
868{
869 path name(path_algorithms::filename_v4(p));
870 if (path_algorithms::compare_v4(name, detail::dot_path()) != 0 && path_algorithms::compare_v4(name, detail::dot_dot_path()) != 0)
871 {
872 size_type pos = name.m_pathname.rfind(path::dot);
873 if (pos != 0 && pos != string_type::npos)
874 name.m_pathname.erase(name.m_pathname.begin() + pos, name.m_pathname.end());
875 }
876 return name;
877}
878
879BOOST_FILESYSTEM_DECL path path_algorithms::extension_v3(path const& p)
880{

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected