ENH: add single-parameter PtrListOps::names (ie, no name filtering)

ENH: adjust fileName component method

- the location \c npos returns the last component
This commit is contained in:
Mark Olesen
2021-10-11 23:27:51 +02:00
parent 5014398c45
commit 7ad75fa18e
6 changed files with 31 additions and 5 deletions

View File

@ -224,7 +224,8 @@ void testDirname(const fileName& input)
<< " path:" << input.path()
<< " name:\"" << input.name() << '"'
<< " ext:\"" << input.ext() << '"'
<< " components: " << flatOutput(input.components()) << nl;
<< " components: " << flatOutput(input.components())
<< " last: " << input.component(string::npos) << nl;
}