- }
-
- if (PropertyValue.Mid(0, 1) == wxT("\"")){
-
- PropertyValue.Remove(0, 1);
-
- }
-
- CaptureString(&PropertyValue, FALSE);
-
- if (PropertyName == wxT("ALTID")){
-
- CategoriesListAltID.erase(*CategoryCount);
- CategoriesListAltID.insert(std::make_pair(*CategoryCount, PropertyValue));
-
- } else if (PropertyName == wxT("PID")){
-
- CategoriesListPID.erase(*CategoryCount);
- CategoriesListPID.insert(std::make_pair(*CategoryCount, PropertyValue));
-
- } else if (PropertyName == wxT("PREF")){
-
- int PriorityNumber = 0;
- bool ValidNumber = TRUE;
-
- try{
- PriorityNumber = std::stoi(PropertyValue.ToStdString());
- }
-
- catch(std::invalid_argument &e){
- ValidNumber = FALSE;
- }
-
- if (ValidNumber == TRUE){
-
- CategoriesListPref.erase(*CategoryCount);
- CategoriesListPref.insert(std::make_pair(*CategoryCount, PriorityNumber));
-
- }
-
- } else if (PropertyName == wxT("LANGUAGE")){
-
- CategoriesListLanguage.erase(*CategoryCount);
- CategoriesListLanguage.insert(std::make_pair(*CategoryCount, PropertyValue));
-
- } else {
-
- // Something else we don't know about so append
- // to the tokens variable.
-
- if (!PropertyName.IsEmpty() && !PropertyValue.IsEmpty() && PropertyName != wxT("TYPE")){
-
- if (FirstToken == TRUE){
-
- PropertyTokens.Append(PropertyName + wxT("=") + PropertyValue);
- FirstToken = FALSE;
-
- } else {