wxString wxSPropertySeg1;
wxString wxSPropertySeg2;
wxString wxSPropertyNextLine;
- int ContactLineLen = 0;
+ size_t ContactLineLen = 0;
int QuoteBreakPoint = 0;
int FNCount = 0;
int NameCount = 0;
if (wxSProperty == wxT("FN")){
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 4;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
//SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
intPrevValue = 3;
} else if (wxSProperty == wxT("N") && NameProcessed == FALSE){
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 3;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
intPrevValue = 2;
// Process Data.
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 5;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
intPrevValue = 4;
// Process Data.
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 7;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
intPrevValue = 6;
} else if (wxSProperty == wxT("NICKNAME")){
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 10;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
intPrevValue = 9;
// Do PID/ALTID/LANG things.
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 8;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
intPrevValue = 7;
// Process date. Preserve the remainder in the string.
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool BirthdayText = FALSE;
- bool FirstToken = TRUE;
- bool NoYear = FALSE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool NoYear = FALSE;
int intPrevValue = 6;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
wxString strResults;
// Process date. Preserve the remainder in the string.
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool AnniversaryText = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 13;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
wxString strResults;
bool NoYear = FALSE;
}
-
-
if (NoYear == TRUE){
ContactDatav3.AddRaw(wxT("ANNIVERSARY;X-APPLE-OMIT-YEAR=1604"), strResults);
} else if (wxSProperty == wxT("TZ")){
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 4;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
intPrevValue = 3;
} else if (wxSProperty == wxT("ADR")){
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString AddressRegion;
wxString AddressPostalCode;
wxString AddressCountry;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 5;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
intPrevValue = 4;
// TODO: Continue from here! See ADR for good example (Replace initer with intPrevValue).
// Remove inserted comma for Extra Tokens in frmContactEditor.cpp
-
- int intPropertyLen = wxSPropertySeg1.Len();
+
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString AddressRegion;
wxString AddressPostalCode;
wxString AddressCountry;
- bool AfterFirstProperty = FALSE;
- bool FirstToken = TRUE;
- int intSplitSeek = 0;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 7;
- int intPref = 0;
- int intType = 0;
- int intSplitPoint = 0;
-
intPrevValue = 6;
ItemSeek++;
} else if (wxSProperty == wxT("IMPP")){
-
- int intPropertyLen = wxSPropertySeg1.Len();
+
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyTokens;
wxString IMPPType;
wxString IMPPAddress;
- bool AfterFirstProperty = FALSE;
- bool FirstToken = TRUE;
- int intSplitSeek = 0;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 6;
- int intPref = 0;
- int intType = 0;
- int intSplitPoint = 0;
-
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
}
- ItemSeek++;
+ ItemSeek++;
} else if (wxSProperty == wxT("TEL")){
// Check TEL and make sure it is functioning properly.
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int> TypeSplitPoints;
wxString TelTypeDetail;
wxString TelTypeOut;
wxString FinalFriendlyString;
- bool AfterFirstProperty = FALSE;
- bool FirstToken = TRUE;
- bool SkipFirst = TRUE;
- int intSplitSeek = 0;
int intSplitsFound = 0;
int intSplitSize = 0;
int intPrevValue = 5;
- int intPref = 0;
int intType = 0;
int intSplitPoint = 0;
-
intPrevValue = 4;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
// Strip out the quotes if they are there.
- int intPropertyValueLen = PropertyValue.Len();
+ size_t intPropertyValueLen = PropertyValue.Len();
if (PropertyValue.Mid((intPropertyValueLen - 1), 1) == wxT("\"")){
ItemSeek++;
} else if (wxSProperty == wxT("LANG")){
-
- int intPropertyLen = wxSPropertySeg1.Len();
+
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 6;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
intPrevValue = 5;
- if (((QuoteBreakPoint + 1) - intPrevValue) <= 0){
+ if (((QuoteBreakPoint + 1) - intPrevValue) <= 0){
- ContactDatav3.AddRaw(wxT("X-VCARD4-LANG"), wxSPropertySeg2);
+ ContactDatav3.AddRaw(wxT("X-VCARD4-LANG"), wxSPropertySeg2);
- } else {
+ } else {
- ContactDatav3.AddRaw(wxT("X-VCARD4-LANG;") + ContactLine.Mid(intPrevValue, ((QuoteBreakPoint + 1) - (intPrevValue + 1))), wxSPropertySeg2);
+ ContactDatav3.AddRaw(wxT("X-VCARD4-LANG;") + ContactLine.Mid(intPrevValue, ((QuoteBreakPoint + 1) - (intPrevValue + 1))), wxSPropertySeg2);
- }
+ }
} else if (wxSProperty == wxT("GEO")){
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyValue;
wxString PropertyTokens;
wxString GeoType;
- wxString GeoData;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ wxString GeoData;
int intPrevValue = 5;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
intPrevValue = 4;
} else if (wxSProperty == wxT("RELATED")){
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyTokens;
wxString RelatedType;
wxString RelatedTypeOriginal;
- wxString RelatedName;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ wxString RelatedName;
+ bool FirstToken = TRUE;
int intPrevValue = 9;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
intPrevValue = 8;
ItemSeek++;
} else if (wxSProperty == wxT("URL")){
-
- int intPropertyLen = wxSPropertySeg1.Len();
+
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 5;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
intPrevValue = 4;
ItemSeek++;
} else if (wxSProperty == wxT("TITLE")) {
-
- int intPropertyLen = wxSPropertySeg1.Len();
+
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 7;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
intPrevValue = 6;
} else if (wxSProperty == wxT("ROLE")) {
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 6;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
intPrevValue = 5;
}
} else if (wxSProperty == wxT("ORG")) {
-
- int intPropertyLen = wxSPropertySeg1.Len();
+
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 5;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
intPrevValue = 4;
} else if (wxSProperty == wxT("NOTE")) {
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 6;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
intPrevValue = 5;
} else if (wxSProperty == wxT("CATEGORIES")) {
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyValue;
wxString PropertyTokens;
wxString PropertyType;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 12;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
intPrevValue = 11;
} else if (wxSProperty == wxT("PHOTO")) {
- int intPropertyLen = wxSPropertySeg1.Len();
+ size_t intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool FirstToken = TRUE;
int intSplitsFound = 0;
int intSplitSize = 0;
int intPrevValue = 7;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
intPropertyLen = wxSPropertySeg2.Len();
SplitPoints.clear();
wxString wxSPhotoData;
std::string base64enc;
- if (intSplitsFound = 0){
+ if (intSplitsFound == 0){
} else {
} else if (wxSProperty == wxT("LOGO")) {
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 6;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
intPrevValue = 5;
} else if (wxSProperty == wxT("SOUND")) {
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 7;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
intPrevValue = 6;
} else if (wxSProperty == wxT("CALURI")){
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 8;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
-
+
intPrevValue = 7;
- if (((QuoteBreakPoint + 1) - intPrevValue) <= 0){
+ if (((QuoteBreakPoint + 1) - intPrevValue) <= 0){
- ContactDatav3.AddRaw(wxT("X-VCARD4-CALURI"), wxSPropertySeg2);
+ ContactDatav3.AddRaw(wxT("X-VCARD4-CALURI"), wxSPropertySeg2);
- } else {
+ } else {
- ContactDatav3.AddRaw(wxT("X-VCARD4-CALURI;") + ContactLine.Mid(intPrevValue, ((QuoteBreakPoint + 1) - (intPrevValue + 1))), wxSPropertySeg2);
+ ContactDatav3.AddRaw(wxT("X-VCARD4-CALURI;") + ContactLine.Mid(intPrevValue, ((QuoteBreakPoint + 1) - (intPrevValue + 1))), wxSPropertySeg2);
- }
+ }
} else if (wxSProperty == wxT("CALADRURI")){
-
- int intPropertyLen = wxSPropertySeg1.Len();
+
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 11;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
intPrevValue = 10;
} else if (wxSProperty == wxT("FBURL")){
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 7;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
-
+
intPrevValue = 6;
if (((QuoteBreakPoint + 1) - intPrevValue) <= 0){
} else if (wxSProperty == wxT("KEY")){
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 5;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
intPrevValue = 4;
- if (((QuoteBreakPoint + 1) - intPrevValue) <= 0){
+ if (((QuoteBreakPoint + 1) - intPrevValue) <= 0){
- ContactDatav3.AddRaw(wxT("X-VCARD4-KEY"), wxSPropertySeg2);
+ ContactDatav3.AddRaw(wxT("X-VCARD4-KEY"), wxSPropertySeg2);
- } else {
+ } else {
- ContactDatav3.AddRaw(wxT("X-VCARD4-KEY;") + ContactLine.Mid(intPrevValue, ((QuoteBreakPoint + 1) - (intPrevValue + 1))), wxSPropertySeg2);
+ ContactDatav3.AddRaw(wxT("X-VCARD4-KEY;") + ContactLine.Mid(intPrevValue, ((QuoteBreakPoint + 1) - (intPrevValue + 1))), wxSPropertySeg2);
- }
+ }
} else if (wxSProperty == wxT("UID")){
wxString wxSVNDID;
wxString wxSVNDPropName;
-
- int intPrevValue = (wxSProperty.Len() + 1);
+ size_t intPrevValue = (wxSProperty.Len() + 1);
while (wSTVendorDetails.HasMoreTokens() == TRUE){
}
} else if (wxSProperty.Mid(0, 2) == wxT("X-")){
-
-
- int intPrevValue = (wxSProperty.Len() + 1);
+ size_t intPrevValue = (wxSProperty.Len() + 1);
- if (((QuoteBreakPoint + 1) - intPrevValue) <= 0){
+ if (((QuoteBreakPoint + 1) - intPrevValue) <= 0){
- ContactDatav3.AddRaw(wxSProperty, wxSPropertySeg2);
+ ContactDatav3.AddRaw(wxSProperty, wxSPropertySeg2);
- } else {
+ } else {
- ContactDatav3.AddRaw(wxSProperty + wxT(";") + ContactLine.Mid(intPrevValue, ((QuoteBreakPoint + 1) - (intPrevValue + 1))), wxSPropertySeg2);
+ ContactDatav3.AddRaw(wxSProperty + wxT(";") + ContactLine.Mid(intPrevValue, ((QuoteBreakPoint + 1) - (intPrevValue + 1))), wxSPropertySeg2);
- }
+ }
}
bool QuoteMode = FALSE;
bool PropertyFind = TRUE;
- bool HasExtraNicknames = FALSE;
- bool IgnoreGender = FALSE;
bool ExtraLineSeek = TRUE;
bool ExtraLineSeekSub = TRUE;
bool BirthdayProcessed = FALSE;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyDataStr;
- int ContactLineLen = 0;
- int ContactLineSubLen = 0;
+ size_t ContactLineLen = 0;
+ size_t ContactLineSubLen = 0;
int QuoteBreakPoint = 0;
- int intPrevValueSub = 0;
+ size_t intPrevValueSub = 0;
std::map<wxString, wxString> PropertyData;
std::map<wxString, bool> PropertyLock;
ExtraLineSeekSub = TRUE;
iterboolsub = ContactFileProcessed.find(itersub->first);
- std::map<int,bool>::iterator iterorig = ContactFileProcessed.find(itersub->first);
+ //std::map<int,bool>::iterator iterorig = ContactFileProcessed.find(itersub->first);
//std::map<int,bool>::iterator itersuborig;
// Ignore certain variables as they are not needed.
while (ExtraLineSeekSub == TRUE){
if (itersub == ContactFileLines.end()){
- ExtraLineSeekSub;
+ ExtraLineSeekSub = FALSE;
continue;
} else {
itersub++;
intPrevValueSub = (wxSProperty.Len() + 2);
- SplitValuesData(&wxSPropertyChopped, &TempSplitPoints, &TempSplitLength, intPrevValueSub, &TempPropertyData);
+ SplitValuesData(&wxSPropertyChopped, &TempSplitPoints, &TempSplitLength, (int)intPrevValueSub, &TempPropertyData);
// Process the splitted data into temporary property data.
-
- bool FirstToken = TRUE;
-
+
// Look for certain property names and the X-FIRST
// property name.
// (indicated by space or tab at the start) and add data.
if (itersub == ContactFileLines.end()){
- ExtraLineSeekSub;
+ ExtraLineSeekSub = FALSE;
continue;
}
else {
std::map<int,int> DataLineProcess;
std::map<int, bool>::iterator DLSLiter;
- int DataLineSeek = 0;
// Look for the X-VCARD4-(variablename) equivilant.
int ItemOrdered = 0;
int ItemUnordered = 0;
int ItemNumber = 0;
- int ItemStringSeekLen = 0;
+ size_t ItemStringSeekLen = 0;
int ItemSeekSub = 0;
int ItemSeekSecSub = 0;
//int intValueSeek = 1;
ExtraLineSeekSub = 0;
wxString wxSPropertyNextLineSub;
ContactLineSubLen = 0;
- int ContactLineSeekSub = 0;
int ItemIndex = 0;
PropertFindSub.clear();
wxSPropertySub.clear();
wxString wxSProperty;
wxString wxSPropertySeg1Chopped;
-
+ size_t intPropertyLen;
+
if (ProcessItemData == TRUE){
wxStringTokenizer wxSPropertySplit(*wxSPropertyName, wxT("."));
// EMAIL
if (wxSProperty == wxT("EMAIL")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 7;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
wxSPropertyDataOut->Append(*wxSPropertySeg2Ptr);
*wxSPropertyDataNameOut = wxT("EMAIL");
// ADR
if (wxSProperty == wxT("ADR")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 5;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
wxSPropertyDataOut->Append(*wxSPropertySeg2Ptr);
*wxSPropertyDataNameOut = wxT("ADR");
// LABEL
if (wxSProperty == wxT("LABEL")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
- int intPrevValue = 7;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
+ bool FirstToken = TRUE;
+ int intPrevValue = 7;
wxSPropertyDataOut->Append(*wxSPropertySeg2Ptr);
*wxSPropertyDataNameOut = wxT("ADR");
// IMPP
if (wxSProperty == wxT("IMPP")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 6;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
wxStringTokenizer IMPPSplit(*wxSPropertySeg2Ptr, wxT(":"));
wxString IMPPType;
// TEL
if (wxSProperty == wxT("TEL")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 5;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
wxSPropertyDataOut->Append(wxT("tel:"));
wxSPropertyDataOut->Append(*wxSPropertySeg2Ptr);
// RELATED
if (wxSProperty == wxT("X-ABRELATEDNAMES")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 18;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
wxSPropertyDataOut->Append(*wxSPropertySeg2Ptr);
*wxSPropertyDataNameOut = wxT("RELATED");
// URL
if (wxSProperty == wxT("URL")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 5;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
wxSPropertyDataOut->Append(*wxSPropertySeg2Ptr);
*wxSPropertyDataNameOut = wxT("URL");
if (wxSProperty == wxT("TITLE")){
- int intPropertyLen;
-
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 7;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
wxSPropertyDataOut->Append(*wxSPropertySeg2Ptr);
*wxSPropertyDataNameOut = wxT("TITLE");
// FN
if (wxSProperty == wxT("FN")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 4;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
wxSPropertyDataOut->Append(*wxSPropertySeg2Ptr);
*wxSPropertyDataNameOut = wxT("FN");
// N
if (wxSProperty == wxT("N")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
- int intPrevValue = 3;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
-
+ bool FirstToken = TRUE;
+ int intPrevValue = 3;
+
wxSPropertyDataOut->Append(*wxSPropertySeg2Ptr);
*wxSPropertyDataNameOut = wxT("N");
*VCardV3Value = TRUE;
// UID
if (wxSProperty == wxT("UID")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 5;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
wxSPropertyDataOut->Append(*wxSPropertySeg2Ptr);
*wxSPropertyDataNameOut = wxT("UID");
// NICKNAME
if (wxSProperty == wxT("NICKNAME")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 10;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
wxSPropertyDataOut->Append(*wxSPropertySeg2Ptr);
*wxSPropertyDataNameOut = wxT("NICKNAME");
// GENDER
if (wxSProperty == wxT("GENDER")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 8;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
wxSPropertyDataOut->Append(*wxSPropertySeg2Ptr);
*wxSPropertyDataNameOut = wxT("GENDER");
// BDAY
if (wxSProperty == wxT("BDAY")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyValue;
wxString PropertyTokens;
wxString PropertyXOmitYear;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 6;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
*wxSPropertyDataNameOut = wxT("BDAY");
*VCardV3Value = TRUE;
// ANNIVERSARY
if (wxSProperty == wxT("ANNIVERSARY")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyValue;
wxString PropertyTokens;
wxString PropertyXOmitYear;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 13;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
*wxSPropertyDataNameOut = wxT("ANNIVERSARY");
*VCardV3Value = TRUE;
// is kept as X-VCARD3-TZ for the time being.
if (wxSProperty == wxT("TZ")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyValue;
wxString PropertyTokens;
wxString PropertyXOmitYear;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 4;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
wxSPropertyDataOut->Append(*wxSPropertySeg2Ptr);
*wxSPropertyDataNameOut = wxT("X-VCARD3-TZ");
// ROLE
if (wxSProperty == wxT("ROLE")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyValue;
wxString PropertyTokens;
wxString PropertyXOmitYear;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 6;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
wxSPropertyDataOut->Append(*wxSPropertySeg2Ptr);
*wxSPropertyDataNameOut = wxT("ROLE");
// ORG
if (wxSProperty == wxT("ORG")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyValue;
wxString PropertyTokens;
wxString PropertyXOmitYear;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 5;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
wxSPropertyDataOut->Append(*wxSPropertySeg2Ptr);
*wxSPropertyDataNameOut = wxT("ORG");
// NOTE
if (wxSProperty == wxT("NOTE")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyValue;
wxString PropertyTokens;
wxString PropertyXOmitYear;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 6;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
wxSPropertyDataOut->Append(*wxSPropertySeg2Ptr);
*wxSPropertyDataNameOut = wxT("NOTE");
if (wxSProperty == wxT("PHOTO")){
- int intPropertyLen;
-
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyValue;
wxString PropertyTokens;
wxString PropertyXOmitYear;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 7;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
*wxSPropertyDataNameOut = wxT("PHOTO");
*VCardV3Value = TRUE;
// SOUND
if (wxSProperty == wxT("SOUND")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyValue;
wxString PropertyTokens;
wxString PropertyXOmitYear;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 7;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
*wxSPropertyDataNameOut = wxT("SOUND");
*VCardV3Value = TRUE;
if (wxSProperty == wxT("X-VCARD4-FN")){
- int intPropertyLen;
-
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 13;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-N
if (wxSProperty == wxT("X-VCARD4-N")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 12;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-NICKNAME
if (wxSProperty == wxT("X-VCARD4-NICKNAME")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 19;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-GENDER
if (wxSProperty == wxT("X-VCARD4-GENDER")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 17;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-BDAY
if (wxSProperty == wxT("X-VCARD4-BDAY")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 15;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-ANNIVERSARY
if (wxSProperty == wxT("X-VCARD4-ANNIVERSARY")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 22;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-TZ
if (wxSProperty == wxT("X-VCARD4-TZ")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 13;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-ADR
if (wxSProperty == wxT("X-VCARD4-ADR")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 14;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-EMAIL
if (wxSProperty == wxT("X-VCARD4-EMAIL")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 16;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-IMPP
if (wxSProperty == wxT("X-VCARD4-IMPP")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 15;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-TEL
if (wxSProperty == wxT("X-VCARD4-TEL")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 14;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-LANG
if (wxSProperty == wxT("X-VCARD4-LANG")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 15;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-GEO
if (wxSProperty == wxT("X-VCARD4-GEO")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 14;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-RELATED
if (wxSProperty == wxT("X-VCARD4-RELATED")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 18;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-URL
if (wxSProperty == wxT("X-VCARD4-URL")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 14;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-TITLE
if (wxSProperty == wxT("X-VCARD4-TITLE")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 16;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-ROLE
if (wxSProperty == wxT("X-VCARD4-ROLE")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 15;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-ORG
if (wxSProperty == wxT("X-VCARD4-ORG")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 14;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-NOTE
if (wxSProperty == wxT("X-VCARD4-NOTE")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 15;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-CATEGORIES
if (wxSProperty == wxT("X-VCARD4-CATEGORIES")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 21;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-PHOTO
if (wxSProperty == wxT("X-VCARD4-PHOTO")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 16;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-LOGO
if (wxSProperty == wxT("X-VCARD4-LOGO")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 15;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-SOUND
if (wxSProperty == wxT("X-VCARD4-SOUND")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 16;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-CALURI
if (wxSProperty == wxT("X-VCARD4-CALURI")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 17;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-CALADRURI
if (wxSProperty == wxT("X-VCARD4-CALADRURI")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 20;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-FBURL
if (wxSProperty == wxT("X-VCARD4-FBURL")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 16;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-KEY
if (wxSProperty == wxT("X-VCARD4-KEY")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 14;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
// X-VCARD4-VND-*
if (wxSProperty.Mid(0, 12) == wxT("X-VCARD4-VND")){
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 14;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
if (wxSProperty == wxT("X-ADDRESSBOOKSERVER-KIND")){
// Process Data.
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 26;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
if (wxSProperty == wxT("X-ADDRESSBOOKSERVER-MEMBER")){
// Process Data.
-
- int intPropertyLen;
-
+
if (ProcessItemData == TRUE){
intPropertyLen = wxSPropertySeg1Chopped.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
- std::map<wxString, bool>::iterator BIter;;
+ std::map<wxString, bool>::iterator BIter;;
wxString PropertyData;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 28;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
if (ProcessItemData == TRUE){
if (wxSProperty == wxT("X-ABLabel") && ProcessItemData == TRUE){
- int intPropertyLen = wxSPropertySeg1Ptr->Len();
- std::map<int, int> SplitPoints;
+ //int intPropertyLen = wxSPropertySeg1Ptr->Len();
+ intPropertyLen = wxSPropertySeg1Ptr->Len();
+ std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyData;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 11;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
-
SplitValues(wxSPropertySeg1Ptr, &SplitPoints, &SplitLength, intPrevValue);
std::map<int,int> *SplitLength,
int intSize){
- int intPropertyLen = PropertyLine->Len();
+ size_t intPropertyLen = PropertyLine->Len();
int intSplitsFound = 0;
int intSplitSize = 0;
int intSplitSeek = 0;
wxStringTokenizer PropertyElement;
wxString PropertyName;
wxString PropertyValue;
- int intPropertyLen = PropertyLine->Len();
+ size_t intPropertyLen = PropertyLine->Len();
int intSplitsFound = 0;
int intSplitSize = 0;
int intSplitSeek = (intSize - 1);