Diag-Client-Lib
Functions
utility::details Namespace Reference

Functions

constexpr std::string_view StripFilePath (std::string_view path)
 

Function Documentation

◆ StripFilePath()

constexpr std::string_view utility::details::StripFilePath ( std::string_view  path)
constexpr

Definition at line 6 of file file_path.h.

6  {
7  size_t pos{path.find_last_of("/\\")};
8  return (pos == std::string_view::npos) ? path : path.substr(pos + 1);
9 }