Enhance path search functions
authorMark Abraham <mark.j.abraham@gmail.com>
Tue, 30 Apr 2019 15:03:53 +0000 (17:03 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Thu, 2 May 2019 12:52:44 +0000 (14:52 +0200)
commit8253fb0af0072f74981c2c5762f7e31326265946
treeb32fdd15486955821f75b9b9438e24ac5a7117eb
parent02a92f23f651ff81784df71f3f17dcfff18ce32b
Enhance path search functions

Extracted common implementation functions based on compat::string_view
and simplified the uses of them. Some temporary strings are no longer
created. Added, updated, and corrected Doxygen. Removed comments about
dot and dot-dot special directories, as the code does not do anything
about them. Moved some naming in the direction of C++17
std::filesystem::path.

Added new tests to cover the changes. Used namespaces better in the
test file. Used reference data for the tests.

Eliminated getParentPathAndBasename as redundant.

Change-Id: I11a1a25a257da753ca83f5bdd09d06b11c76cec5
docs/doxygen/cycle-suppressions.txt
src/gromacs/utility/futil.cpp
src/gromacs/utility/path.cpp
src/gromacs/utility/path.h
src/gromacs/utility/tests/path.cpp
src/gromacs/utility/tests/refdata/PathTest_SearchOperationsWork.xml [new file with mode: 0644]