LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
FileUtils.h File Reference
#include "common/LimaCommon.h"
#include <QtCore/QFile>
#include <iostream>

Go to the source code of this file.

Namespaces

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

Macros

#define LIMA_PATH_SEPARATOR   ':'
 
#define FILESREPORTLOGINIT   LOGINIT("FilesReporting")
 

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.
 
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.
 

Macro Definition Documentation

◆ FILESREPORTLOGINIT

#define FILESREPORTLOGINIT   LOGINIT("FilesReporting")

Definition at line 28 of file FileUtils.h.

◆ LIMA_PATH_SEPARATOR

#define LIMA_PATH_SEPARATOR   ':'

Definition at line 25 of file FileUtils.h.