Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added ResetUnusedString to textprocessing.{cpp,h}
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 10 Jan 2016 18:49:32 +0000 (18:49 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 10 Jan 2016 18:49:32 +0000 (18:49 +0000)
source/common/textprocessing.cpp
source/common/textprocessing.h

index d979d30..aeec7a8 100644 (file)
@@ -80,6 +80,16 @@ void CaptureString(wxString *ProcessString, bool StripQuotes)
 
 }
 
+void ResetUnusedString(wxString *ProcessString)
+{
+
+       ProcessString->Replace(wxT("\\\\"), wxT("\\"), TRUE);
+       ProcessString->Replace(wxT("\n"), wxT(""), TRUE);
+       ProcessString->Replace(wxT("\\;"), wxT(";"), TRUE);
+       ProcessString->Replace(wxT("\\,"), wxT(","), TRUE);
+
+}
+
 void ConvertToHTML(wxString *ProcessString)
 {
 
index 78ddf2b..7a63ea0 100644 (file)
@@ -28,6 +28,7 @@ void GetEscapeString(wxTextCtrl *TextCtrl, wxString *ProcessString, bool StripQu
 void GetEscapeString(wxComboBox *ComboCtrl, wxString *ProcessString, bool StripQuotes);
 void GetEscapeString(wxChoice *ChoiceCtrl, wxString *ProcessString, bool StripQuotes);
 void CaptureString(wxString *ProcessString, bool StripQuotes);
+void ResetUnusedString(wxString *ProcessString);
 void ConvertToHTML(wxString *ProcessString);
 
 void DeleteMapDataProcess(int IndexNum, std::map<int, std::string>* MapData);
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy