X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcommon%2Ftextprocessing.cpp;h=aeec7a80661e5f0c7728a6ca4efcab68220a2aa7;hb=472ba57cddb0937ac20b81542411374401ddc1ec;hp=d4aee6b05666c539e1cab2e7193b6d68404553af;hpb=87b1ab30b0f67dfa0457f9e946757d83cfb25106;p=xestiaab%2F.git diff --git a/source/common/textprocessing.cpp b/source/common/textprocessing.cpp index d4aee6b..aeec7a8 100644 --- a/source/common/textprocessing.cpp +++ b/source/common/textprocessing.cpp @@ -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) { @@ -106,6 +116,34 @@ void DeleteMapDataProcess(int IndexNum, std::map* MapData){ MapData->erase(IndexNum); } +bool MapDataExists(int *ItemIndex, std::map *MapPtr){ + + if (MapPtr->find(*ItemIndex) == MapPtr->end()){ + + return FALSE; + + } else { + + return TRUE; + + } + +} + +bool MapDataExists(int *ItemIndex, std::map *MapPtr){ + + if (MapPtr->find(*ItemIndex) == MapPtr->end()){ + + return FALSE; + + } else { + + return TRUE; + + } + +} + /* template void DeleteMapData(ArgMap* ArgMapPtr, Args*... ArgsList){