Utility Class Reference

Utility Class Reference

#include <kernel.h>

Class Description

This class is collects miscellaneous utility functions.

Definition at line 634 of file 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...
 

Member Function Documentation

static QString SanitizeFileName ( const QString sName)
static

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"

Parameters
[in]sNameThe file name to sanitize

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