LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
FileUtils.cpp File Reference
#include "FileUtils.h"
#include <QFileInfo>
#include <QDir>
#include <QStandardPaths>

Go to the source code of this file.

Namespaces

namespace  Lima
 NAUTITIA.
 
namespace  Lima::Common
 
namespace  Lima::Common::Misc
 

Functions

uint64_t Lima::Common::Misc::countLines (std::istream &file)
 Count the number of lines in the given file from the current position.
 
uint64_t Lima::Common::Misc::countLines (QFile &file)
 Count the number of lines in the given file from the current position.
 
void Lima::Common::Misc::appendNonEmptyDirs (QStringList &target, const QStringList &source)
 
QString Lima::Common::Misc::getEnvVar (const QString &name)
 
QString Lima::Common::Misc::getDataHome ()
 
void Lima::Common::Misc::appendFirstOrSecond (QStringList &target, const QString &path, const QString &alt_path)
 
void Lima::Common::Misc::appendFirstOrSecondForProject (QStringList &target, const QString &project, const QString &path_prefix, const QString &path_postfix=QString(""))
 
void Lima::Common::Misc::buildDirectoriesListForProject (QStringList &target, const QString &project, const QString &env_postfix, const QString &path_prefix, const QString &path_postfix=QString(""))
 
QStringList Lima::Common::Misc::buildConfigurationDirectoriesList (const QStringList &projects=QStringList(), const QStringList &paths=QStringList())
 Build a list of configuration directories from a list of project names and a list of paths.
 
QStringList Lima::Common::Misc::buildResourcesDirectoriesList (const QStringList &projects, const QStringList &paths=QStringList())
 Build a list of resources directories from a list of project names and a list of paths.
 
QString Lima::Common::Misc::findFileInPaths (const QString &paths, const QString &fileName, const QChar &separator=QLatin1Char(LIMA_PATH_SEPARATOR))
 Find the given file in the given paths.