MCPcopy Create free account
hub / github.com/Icinga/icinga2 / BaseName

Method BaseName

lib/base/utility.cpp:271–274  ·  view source on GitHub ↗

* Returns the file component of a path. See basename(3) for details. * * @param path The full path. * @returns The filename. */

Source from the content-addressed store, hash-verified

269 * @returns The filename.
270 */
271String Utility::BaseName(const String& path)
272{
273 return boost::filesystem::path(path.Begin(), path.End()).filename().string();
274}
275
276/**
277 * Null deleter. Used as a parameter for the shared_ptr constructor.

Callers

nothing calls this directly

Calls 3

stringMethod · 0.45
BeginMethod · 0.45
EndMethod · 0.45

Tested by

no test coverage detected