MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ extract_filename()

static std::string_view Lila::Commentator::extract_filename ( const char *  path)
inlinestaticprivate

Extracts the filename from a file path.

Parameters
pathFile path.
Returns
Filename string view.

Definition at line 347 of file Commentator.hpp.

348 {
349 std::string_view sv(path);
350 auto pos = sv.find_last_of("/\\");
351 return (pos == std::string_view::npos) ? sv : sv.substr(pos + 1);
352 }