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(
"\""));
101 #if defined __WXMSW__ && !wxCHECK_VERSION(3,1,1)
106 #include "wx/msw/helpchm.h"
107 class WXIMPEX HuginCHMHelpController :
public wxCHMHelpController
110 void DisplayHelpPage(
const wxString& name);
119 #if defined __WXGTK__ && wxCHECK_VERSION(3,1,1)
121 WXIMPEX void CheckConfigFilename();
124 #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 "".