The FileNameFn
Class Reference
Declaration
class FileNameFn { ... }
Included Headers
#include <src/filename.h>
Public Operators Index
std::size_t | operator() (const std::string &input) const noexcept |
used as hash function More... | |
bool | operator() (const std::string &t1, const std::string &t2) const |
used as equal operator More... | |
Private Member Functions Index
std::string | searchKey (const std::string &input) const |
Description
Custom combined key compare and hash functor that uses a lower case string in case CASE_SENSE_NAMES is set to NO.
Definition at line 45 of file filename.h.
Public Operators
operator()()
| inline noexcept |
used as hash function
Definition at line 49 of file filename.h.
49 std::size_t operator()(const std::string& input) const noexcept
50 {
51 return std::hash<std::string>()(searchKey(input));
52 }
Reference searchKey.
operator()()
| inline |
used as equal operator
Definition at line 54 of file filename.h.
Reference searchKey.
Private Member Functions
searchKey()
| inline |
Definition at line 59 of file filename.h.
60 {
61 std::string key = input;
62 if (!getCaseSenseNames())
63 {
64 key = convertUTF8ToLower(key);
65 }
66 return key;
67 }
References convertUTF8ToLower and getCaseSenseNames.
Referenced by operator() and operator().
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus by Doxygen 1.14.0.