WSF
wizard::Util Class Reference

#include <Util.hpp>

Static Public Member Functions

static bool IsExecutable (const UtPath &aExePath)
static QStringList SplitCommandLine (const QString &aCommandLine, const QMap< QString, QString > &aVariables)
static bool IsNonTextFile (const QString &aPath)
static int FilesInDirectory (QDir &aDir, int aStopAt=10000)
static std::string MakeTempFileName ()
static bool CreateNewFile (const UtPath &aName)
static QString QuotePathWithSpaces (const QString &aPath)
static QString StripHtml (const QString &htmlStr)
static QRegExp SimpleRegex (const QString &aText)
static void EscapeForCSV (std::string &aText)
static QString BuildFileLineColURL (const QString &aFilePath, int aLine, int aColumn=0, const QString &aLabel=QString())
static QString BuildHRef (const QString &aUrl, const QString &aLabel)

Static Public Attributes

static const QRegExp wsfValidInputRegexp

Member Function Documentation

◆ BuildFileLineColURL()

QString wizard::Util::BuildFileLineColURL ( const QString & aFilePath,
int aLine,
int aColumn = 0,
const QString & aLabel = QString() )
static

References BuildHRef().

Referenced by EscapeForCSV().

◆ BuildHRef()

QString wizard::Util::BuildHRef ( const QString & aUrl,
const QString & aLabel )
static

◆ CreateNewFile()

◆ EscapeForCSV()

void wizard::Util::EscapeForCSV ( std::string & aText)
static

◆ FilesInDirectory()

int wizard::Util::FilesInDirectory ( QDir & aDir,
int aStopAt = 10000 )
static

References FilesInDirectory().

Referenced by FilesInDirectory().

◆ IsExecutable()

bool wizard::Util::IsExecutable ( const UtPath & aExePath)
static

Returns 'true' if the path points to an executable file. This is a simple check to prevent trying to execute files that are not executable.

Referenced by wizard::WsfExe::FromDisk(), and wizard::WsfExe::LoadFromDisk().

◆ IsNonTextFile()

◆ MakeTempFileName()

std::string wizard::Util::MakeTempFileName ( )
static

◆ QuotePathWithSpaces()

QString wizard::Util::QuotePathWithSpaces ( const QString & aPath)
static

◆ SimpleRegex()

QRegExp wizard::Util::SimpleRegex ( const QString & aText)
static

◆ SplitCommandLine()

QStringList wizard::Util::SplitCommandLine ( const QString & aCommandLine,
const QMap< QString, QString > & aVariables )
static

◆ StripHtml()

QString wizard::Util::StripHtml ( const QString & htmlStr)
static

Member Data Documentation

◆ wsfValidInputRegexp

const QRegExp wizard::Util::wsfValidInputRegexp
static

The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved