#include <kernel.h>
Static Public Member Functions | |
static QString | SanitizeFileName (const QString &sName) |
Takes a potential file name as input and returns a sanitized version that should be a legal file name on Windows, Mac OSX, and Linux. More... | |
Takes a potential file name as input and returns a sanitized version that should be a legal file name on Windows, Mac OSX, and Linux.
Illegal characters are escaped with the % character, followed by their numeric unicode character code. The % character is escaped with %%.
For example: SanitizeFileName( "material::blue" ) would return "material%58%58blue"
[in] | sName | The file name to sanitize |