2424#include " path.h"
2525#include " pathmatch.h"
2626
27- QStringList FileList::GetDefaultFilters ()
27+ QStringList FileList::getDefaultFilters ()
2828{
2929 QStringList extensions;
3030 extensions << " *.cpp" << " *.cxx" << " *.cc" << " *.c" << " *.c++" << " *.txx" << " *.tpp" ;
3131 return extensions;
3232}
3333
34- bool FileList::FilterMatches (const QFileInfo &inf)
34+ bool FileList::filterMatches (const QFileInfo &inf)
3535{
3636 if (inf.isFile ()) {
37- const QStringList filters = FileList::GetDefaultFilters ();
37+ const QStringList filters = FileList::getDefaultFilters ();
3838 QString ext (" *." );
3939 ext += inf.suffix ();
4040 if (filters.contains (ext, Qt::CaseInsensitive))
@@ -43,18 +43,18 @@ bool FileList::FilterMatches(const QFileInfo &inf)
4343 return false ;
4444}
4545
46- void FileList::AddFile (const QString &filepath)
46+ void FileList::addFile (const QString &filepath)
4747{
4848 QFileInfo inf (filepath);
49- if (FilterMatches (inf))
49+ if (filterMatches (inf))
5050 mFileList << inf;
5151}
5252
53- void FileList::AddDirectory (const QString &directory, bool recursive)
53+ void FileList::addDirectory (const QString &directory, bool recursive)
5454{
5555 QDir dir (directory);
5656 dir.setSorting (QDir::Name);
57- const QStringList filters = FileList::GetDefaultFilters ();
57+ const QStringList filters = FileList::getDefaultFilters ();
5858 const QStringList origNameFilters = dir.nameFilters ();
5959 dir.setNameFilters (filters);
6060 if (!recursive) {
@@ -72,24 +72,24 @@ void FileList::AddDirectory(const QString &directory, bool recursive)
7272 QFileInfo item;
7373 foreach (item, list) {
7474 const QString path = item.canonicalFilePath ();
75- AddDirectory (path, recursive);
75+ addDirectory (path, recursive);
7676 }
7777 }
7878}
7979
80- void FileList::AddPathList (const QStringList &paths)
80+ void FileList::addPathList (const QStringList &paths)
8181{
8282 QString path;
8383 foreach (path, paths) {
8484 QFileInfo inf (path);
8585 if (inf.isFile ())
86- AddFile (path);
86+ addFile (path);
8787 else
88- AddDirectory (path, true );
88+ addDirectory (path, true );
8989 }
9090}
9191
92- QStringList FileList::GetFileList () const
92+ QStringList FileList::getFileList () const
9393{
9494 if (mExcludedPaths .empty ()) {
9595 QStringList names;
@@ -99,11 +99,11 @@ QStringList FileList::GetFileList() const
9999 }
100100 return names;
101101 } else {
102- return ApplyExcludeList ();
102+ return applyExcludeList ();
103103 }
104104}
105105
106- void FileList::AddExcludeList (const QStringList &paths)
106+ void FileList::addExcludeList (const QStringList &paths)
107107{
108108 mExcludedPaths = paths;
109109}
@@ -117,7 +117,7 @@ static std::vector<std::string> toStdStringList(const QStringList &stringList)
117117 return ret;
118118}
119119
120- QStringList FileList::ApplyExcludeList () const
120+ QStringList FileList::applyExcludeList () const
121121{
122122#ifdef _WIN32
123123 const PathMatch pathMatch (toStdStringList (mExcludedPaths ), true );
@@ -128,7 +128,7 @@ QStringList FileList::ApplyExcludeList() const
128128 QStringList paths;
129129 foreach (QFileInfo item, mFileList ) {
130130 QString name = QDir::fromNativeSeparators (item.canonicalFilePath ());
131- if (!pathMatch.Match (name.toStdString ()))
131+ if (!pathMatch.match (name.toStdString ()))
132132 paths << name;
133133 }
134134 return paths;
0 commit comments