// Process FN.
+ wxString ProcessData = "";
+
for (std::map<int, wxString>::iterator FNIter = FullNamesList.begin();
FNIter != FullNamesList.end(); FNIter++){
- SaveData->Append("FN");
+ ProcessData.Append("FN");
// Check if there is a value for TYPE.
if (FullNamesListType[FNIter->first].size() > 0){
- SaveData->Append(";TYPE=");
- SaveData->Append(FullNamesListType[FNIter->first]);
+ ProcessData.Append(";TYPE=");
+ ProcessData.Append(FullNamesListType[FNIter->first]);
}
if (FullNamesListLanguage[FNIter->first].size() > 0){
- SaveData->Append(";LANGUAGE=");
- SaveData->Append(FullNamesListLanguage[FNIter->first]);
+ ProcessData.Append(";LANGUAGE=");
+ ProcessData.Append(FullNamesListLanguage[FNIter->first]);
}
if (FullNamesListAltID[FNIter->first].size() > 0){
- SaveData->Append(";ALTID=");
- SaveData->Append(FullNamesListAltID[FNIter->first]);
+ ProcessData.Append(";ALTID=");
+ ProcessData.Append(FullNamesListAltID[FNIter->first]);
}
if (FullNamesListPID[FNIter->first].size() > 0){
- SaveData->Append(";PID=");
- SaveData->Append(FullNamesListPID[FNIter->first]);
+ ProcessData.Append(";PID=");
+ ProcessData.Append(FullNamesListPID[FNIter->first]);
}
if (FullNamesListPref[FNIter->first] > 0){
- SaveData->Append(";PREF=");
- SaveData->Append(wxString::Format("%i", FullNamesListPref[FNIter->first]));
+ ProcessData.Append(";PREF=");
+ ProcessData.Append(wxString::Format("%i", FullNamesListPref[FNIter->first]));
}
if (FullNamesListTokens[FNIter->first].size() > 0){
- SaveData->Append(";");
- SaveData->Append(FullNamesListTokens[FNIter->first]);
+ ProcessData.Append(";");
+ ProcessData.Append(FullNamesListTokens[FNIter->first]);
}
- SaveData->Append(":");
- SaveData->Append(FNIter->second);
- SaveData->Append("\n");
+ ProcessData.Append(":");
+ ProcessData.Append(FNIter->second);
+ ProcessData.Append("\n");
+
+ ProcessData = OutputText(&ProcessData);
+
+ SaveData->Append(ProcessData);
+ ProcessData.clear();
}