![]() |
PhoenixMock
1.8.7
Tools to split/merge/print mock used in Phoenix
|
#include <dirent.h>
#include "string_utils.h"
#include "string_filename.h"
#include "path_completion.h"
Go to the source code of this file.
Functions | |
std::string | completePathDir (const std::string &pathDir) |
Complete the path directory. More... | |
std::string | path_completion_all (const std::string &basePath) |
Return all path/files which match the basePath. More... | |
std::string | path_completion_dirOnly (const std::string &basePath) |
Return all directories only which match the basePath. More... | |
std::string | prefixPathDir (const std::string &pathDir) |
Complete the path directory with a prefix. More... | |
std::string completePathDir | ( | const std::string & | pathDir | ) |
Complete the path directory.
pathDir | : path of the directory |
Definition at line 18 of file path_completion.cpp.
References isSameBegining().
Referenced by path_completion_all().
std::string path_completion_all | ( | const std::string & | basePath | ) |
Return all path/files which match the basePath.
basePath | : incomming path |
Definition at line 41 of file path_completion.cpp.
References completePathDir(), getDirectory(), getFileName(), isDirectoryExist(), isFileExist(), isSameBegining(), and prefixPathDir().
Referenced by OptionValue::bashCompletionValue().
std::string path_completion_dirOnly | ( | const std::string & | basePath | ) |
Return all directories only which match the basePath.
basePath | : incomming path |
Definition at line 87 of file path_completion.cpp.
References getDirectory(), getFileName(), isDirectoryExist(), and isSameBegining().
Referenced by OptionValue::bashCompletionValue().
std::string prefixPathDir | ( | const std::string & | pathDir | ) |
Complete the path directory with a prefix.
pathDir | : path of the directory |
Definition at line 30 of file path_completion.cpp.
Referenced by path_completion_all().