}
+ // Process N.
+
+ if (!NameTitle.IsEmpty() || !NameForename.IsEmpty() || !NameSurname.IsEmpty() ||
+ !NameOtherNames.IsEmpty() || !NameSuffix.IsEmpty()){
+
+ ProcessData.Append("N");
+
+ // Check if there is a value for ALTID.
+
+ if (NameAltID.size() > 0){
+
+ ProcessData.Append(";ALTID=");
+ ProcessData.Append(NameAltID);
+
+ }
+
+ // Check if there is a value for LANGUAGE.
+
+ if (NameLanguage.size() > 0){
+
+ ProcessData.Append(";LANGUAGE=");
+ ProcessData.Append(NameLanguage);
+
+ }
+
+ // Check if there is a value for SORT-AS.
+
+ if (NameDisplayAs.size() > 0){
+
+ ProcessData.Append(";SORT-AS=\"");
+ ProcessData.Append(NameDisplayAs);
+ ProcessData.Append("\"");
+
+ }
+
+ // Check if there is a value for tokens.
+
+ if (NameTokens.size() > 0){
+
+ ProcessData.Append(";");
+ ProcessData.Append(NameTokens);
+
+ }
+
+ ProcessData.Append(":");
+ ProcessData.Append(NameSurname);
+ ProcessData.Append(";");
+ ProcessData.Append(NameForename);
+ ProcessData.Append(";");
+ ProcessData.Append(NameOtherNames);
+ ProcessData.Append(";");
+ ProcessData.Append(NameTitle);
+ ProcessData.Append(";");
+ ProcessData.Append(NameSuffix);
+
+ ProcessData.Append("\n");
+
+ ProcessData = OutputText(&ProcessData);
+
+ SaveData->Append(ProcessData);
+ ProcessData.clear();
+
+ }
+
// Process NICKNAME.
SaveNickname(&GeneralNicknamesList, &GeneralNicknamesListAltID,
&BusinessNicknamesListLanguage, &BusinessNicknamesListPref,
&BusinessNicknamesListTokens, SaveData, "work");
+ // TODO: Process GENDER.
+
+ // TODO: Process BDAY.
+
+ // TODO: Process ANNIVERSARY.
+
// Process TITLE.
SaveTitle(&GeneralTitleList, &GeneralTitleListLanguage,