From c143732b55176956f08ec069e4d7d710e049cbd7 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Wed, 20 Jan 2016 23:20:29 +0000 Subject: [PATCH] Added XML conversion to ConvertToV3. --- source/vcard/vcard34conv-v3conv.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/source/vcard/vcard34conv-v3conv.cpp b/source/vcard/vcard34conv-v3conv.cpp index a518f8c..9e3f59a 100644 --- a/source/vcard/vcard34conv-v3conv.cpp +++ b/source/vcard/vcard34conv-v3conv.cpp @@ -1731,6 +1731,24 @@ bool vCard34Conv::ConvertToV3(wxString Filename, wxString *wxSData){ } + } else if (wxSProperty.Mid(0, 3) == wxT("XML")){ + + // Process the XML values. + + int intPrevValue = 14; + + intPrevValue = ; + + if (((QuoteBreakPoint + 1) - intPrevValue) <= 0){ + + ContactDatav3.AddRaw(wxT("X-VCARD4-XML"), wxSPropertySeg2); + + } else { + + ContactDatav3.AddRaw(wxT("X-VCARD4-XML;") + ContactLine.Mid(intPrevValue, ((QuoteBreakPoint + 1) - (intPrevValue + 1))), wxSPropertySeg2); + + } + } // Reset the variables. -- 2.39.5