wxString PropertyTokens;
std::map<int,int>::iterator SLiter;
bool FirstToken = TRUE;
+ bool PropertyMatched = FALSE;
for (std::map<int, int>::iterator intiter = SplitPoints.begin();
intiter != SplitPoints.end(); ++intiter){
FullNamesListType.insert(std::make_pair(*FNCount, PropertyValue));
}
+
+ PropertyMatched = TRUE;
- } else if (PropertyName == wxT("LANGUAGE")){
-
- FullNamesListLanguage.erase(*FNCount);
- FullNamesListLanguage.insert(std::make_pair(*FNCount, PropertyValue));
+ }
- } else if (PropertyName == wxT("ALTID")){
+ ProcessStringValue(&PropertyName, "ALTID", &FullNamesListAltID, &PropertyValue, FNCount, &PropertyMatched);
+ ProcessStringValue(&PropertyName, "PID", &FullNamesListPID, &PropertyValue, FNCount, &PropertyMatched);
+ ProcessStringValue(&PropertyName, "LANGUAGE", &FullNamesListLanguage, &PropertyValue, FNCount, &PropertyMatched);
+ ProcessIntegerValue(&PropertyName, "PREF", &FullNamesListPref, &PropertyValue, FNCount, &PropertyMatched);
- FullNamesListAltID.erase(*FNCount);
- FullNamesListAltID.insert(std::make_pair(*FNCount, PropertyValue));
+ if (PropertyMatched == TRUE){
- } else if (PropertyName == wxT("PID")){
-
- FullNamesListPID.erase(*FNCount);
- FullNamesListPID.insert(std::make_pair(*FNCount, PropertyValue));
+ PropertyMatched = FALSE;
+ continue;
- } else if (PropertyName == wxT("PREF")){
-
- ProcessIntegerValue(&FullNamesListPref, &PropertyValue, FNCount);
+ }
- } else if (!PropertyName.IsEmpty() && !PropertyValue.IsEmpty()){
+ if (!PropertyName.IsEmpty() && !PropertyValue.IsEmpty()){
if (FirstToken == TRUE){