Source-highlight Library
srchilite::SourceHighlightUtils Class Reference

Class with some utility static methods. More...

#include <sourcehighlightutils.h>

Static Public Member Functions

static StringSet getFileNames (const std::string path, const std::string fileExtension)
 
static StringSet getStyleFileNames (const std::string path="")
 
static StringSet getCssStyleFileNames (const std::string path="")
 
static StringSet getLangFileNames (const std::string path="")
 
static StringSet getOutLangFileNames (const std::string path="")
 

Detailed Description

Class with some utility static methods.

Since
3.1

Member Function Documentation

StringSet srchilite::SourceHighlightUtils::getCssStyleFileNames ( const std::string  path = "")
static
Parameters
paththe path to search for files (if left empty, it uses the standard data dir path)
Returns
a set of string with file names of css style files
Exceptions
IOExceptionif it cannot open the specified path
StringSet srchilite::SourceHighlightUtils::getFileNames ( const std::string  path,
const std::string  fileExtension 
)
static
Parameters
paththe path to search for files
fileExtensionthe file extension for files (without the dot)
Returns
a set of string with file names matching the specified file extension in the specified path
Exceptions
IOExceptionif it cannot open the specified path
StringSet srchilite::SourceHighlightUtils::getLangFileNames ( const std::string  path = "")
static
Parameters
paththe path to search for files (if left empty, it uses the standard data dir path)
Returns
a set of string with file names of lang definition files
Exceptions
IOExceptionif it cannot open the specified path
Since
3.1.1
StringSet srchilite::SourceHighlightUtils::getOutLangFileNames ( const std::string  path = "")
static
Parameters
paththe path to search for files (if left empty, it uses the standard data dir path)
Returns
a set of string with file names of outlang definition files
Exceptions
IOExceptionif it cannot open the specified path
Since
3.1.1
StringSet srchilite::SourceHighlightUtils::getStyleFileNames ( const std::string  path = "")
static
Parameters
paththe path to search for files (if left empty, it uses the standard data dir path)
Returns
a set of string with file names of style files
Exceptions
IOExceptionif it cannot open the specified path

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