int ContactLineLen = 0;
int QuoteBreakPoint = 0;
int GroupCount = 0;
+ int FNCount = 0;
wxString ContactLine;
wxString PropertyLine;
wxString PropertySeg1;
ProcessMember(PropertySeg1, PropertySeg2, &GroupCount);
GroupCount++;
+ } else if (Property == wxT("FN")){
+
+ ProcessFN(PropertySeg1, PropertySeg2, &FNCount);
+ FNCount++;
+
}
}
}
- //SplitValues(&PropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
-
GroupsList.insert(std::make_pair(*GroupCount, PropertySeg2));
if (!PropertyTokens.IsEmpty()){
}
+void ContactDataObject::ProcessFN(wxString PropertySeg1, wxString PropertySeg2, int *FNCount){
+
+ FullNamesList.insert(std::make_pair(*FNCount, PropertySeg2));
+
+}
+
void SplitValues(wxString *PropertyLine,
std::map<int,int> *SplitPoints,
std::map<int,int> *SplitLength,
ContactLoadStatus LoadFile(wxString Filename);
void ProcessKind(wxString KindData);
void ProcessMember(wxString PropertySeg1, wxString PropertySeg2, int *GroupCount);
+ void ProcessFN(wxString PropertySeg1, wxString PropertySeg2, int *FNCount);
};
ASSERT_NE(TestFile.GroupsListTokens.end(), TestFileIter);
ASSERT_EQ("EXAMPLE=Meep", TestFileIter->second);
+ // Check that the formatted name has been read (FN).
+
+ TestFileIter = TestFile.FullNamesList.find(0);
+ ASSERT_NE(TestFile.FullNamesList.end(), TestFileIter);
+ ASSERT_EQ("Test Contact", TestFileIter->second);
}