Skip to main content

The FileNameFn Class Reference

Declaration

class FileNameFn { ... }

Included Headers

#include <src/filename.h>

Public Operators Index

std::size_toperator() (const std::string &input) const noexcept

used as hash function More...

booloperator() (const std::string &t1, const std::string &t2) const

used as equal operator More...

Private Member Functions Index

std::stringsearchKey (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()()

std::size_t FileNameFn::operator() (const std::string & input)
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()()

bool FileNameFn::operator() (const std::string & t1, const std::string & t2)
inline

used as equal operator

Definition at line 54 of file filename.h.

54 bool operator()(const std::string &t1, const std::string &t2) const
55 {
56 return searchKey(t1) == searchKey(t2);
57 }

Reference searchKey.

Private Member Functions

searchKey()

std::string FileNameFn::searchKey (const std::string & input)
inline

Definition at line 59 of file filename.h.

59 std::string searchKey(const std::string &input) const
60 {
61 std::string key = input;
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.