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