[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

hugin_base/hugin_utils/platform.h File Reference

#include <hugin_shared.h>
#include <math.h>
#include <string>

Include dependency graph for platform.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  hugin_utils

Functions

template<class str>
str quoteStringInternal (const str &arg, const str &quotechar, const str &replacements)
 utility function; escapes characters in replacements with quotechar.
template<class str>
str quoteString (const str &arg)
 Try to escape special chars on windows and linux.
template<class str>
str quoteStringShell (const str &arg)
 Try to escape special chars in a string used by a unix type shell.
template<class str>
str escapeStringMake (const str &arg)
 Escape dangerous chars in makefile strings/filenames (space),#,=.
template<class str>
str quoteFilename (const str &arg)
 Quote a filename, so that it is surrounded by "".


Function Documentation

template<class str>
str escapeStringMake const str &  arg  ) 
 

Escape dangerous chars in makefile strings/filenames (space),#,=.

template<class str>
str quoteFilename const str &  arg  ) 
 

Quote a filename, so that it is surrounded by "".

I don't know the escape char for windows

template<class str>
str quoteString const str &  arg  ) 
 

Try to escape special chars on windows and linux.

: I'm quite sure that this routine doesn't replace some important shell chars I don't know of. This could lead to nasty behaviour and maybe even security holes.

template<class str>
str quoteStringInternal const str &  arg,
const str &  quotechar,
const str &  replacements
 

utility function; escapes characters in replacements with quotechar.

template<class str>
str quoteStringShell const str &  arg  ) 
 

Try to escape special chars in a string used by a unix type shell.

: I'm quite sure that this routine doesn't replace some important shell chars I don't know of. This could lead to nasty behaviour and maybe even security holes.

Note that : and = are not special shell charaters but they also should be escaped because they causes problems with gnumake.


Generated on Mon Sep 20 01:01:27 2010 for Hugintrunk by doxygen 1.3.9.1