OpenLexocad  27.0
Core::FileTool Class Reference

#include <FileTool.h>

Static Public Member Functions

static void removeNonAsciiCharactersInPath (QString &path)
 Removes all non-ASCII characters in a path. More...
 
static void removeInvalidCharactersInFilename (QString &filename)
 Removes all characters that are prohibited in a filename (not a path). More...
 
static bool byNumberSortCallback (const QFileInfo &f1, const QFileInfo &f2)
 Callback for qSort to sort filenames naturally, taking numbers like numbers, not strings. More...
 

Member Function Documentation

◆ byNumberSortCallback()

static bool Core::FileTool::byNumberSortCallback ( const QFileInfo &  f1,
const QFileInfo &  f2 
)
static

Callback for qSort to sort filenames naturally, taking numbers like numbers, not strings.

◆ removeInvalidCharactersInFilename()

static void Core::FileTool::removeInvalidCharactersInFilename ( QString &  filename)
static

Removes all characters that are prohibited in a filename (not a path).

◆ removeNonAsciiCharactersInPath()

static void Core::FileTool::removeNonAsciiCharactersInPath ( QString &  path)
static

Removes all non-ASCII characters in a path.


The documentation for this class was generated from the following file: