27 #ifndef HUGIN_WXPLATFORM_H
28 #define HUGIN_WXPLATFORM_H
31 #include <wx/string.h>
33 namespace hugin_utils {
37 const str & replacements)
41 size_t len = replacements.size();
42 for (
size_t i = 0; i < len; i++) {
43 str source(replacements.substr(i,1));
44 str dest(quotechar + source);
47 idx = ret.find(source,idx);
48 if (idx != str::npos) {
49 ret.replace(idx, 1, dest);
53 }
while (idx != str::npos);
88 return str(wxT(
"\"")) + ret + str(wxT(
"\""));
92 return str(wxT(
"\"")) + ret + str(wxT(
"\""));
106 #if defined __WXGTK__
108 WXIMPEX void CheckConfigFilename();
111 #endif // HUGIN_WXPLATFORM_H
str wxQuoteStringInternal(const str &arg, const str "echar, const str &replacements)
bool str2double(const wxString &s, double &d)
str wxQuoteString(const str &arg)
Try to escape special chars on windows and linux.
wxString doubleTowxString(double d, int digits)
str wxQuoteFilename(const str &arg)
Quote a filename, so that it is surrounded by "".