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

Method extension_v3

src/path.cpp:879–886  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

877}
878
879BOOST_FILESYSTEM_DECL path path_algorithms::extension_v3(path const& p)
880{
881 path name(path_algorithms::filename_v3(p));
882 if (path_algorithms::compare_v4(name, detail::dot_path()) == 0 || path_algorithms::compare_v4(name, detail::dot_dot_path()) == 0)
883 return path();
884 size_type pos(name.m_pathname.rfind(path::dot));
885 return pos == string_type::npos ? path() : path(name.m_pathname.c_str() + pos);
886}
887
888BOOST_FILESYSTEM_DECL path_algorithms::string_type::size_type path_algorithms::find_extension_v4_size(path const& p)
889{

Callers

nothing calls this directly

Calls 2

pathFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected