From: Steve Brokenshire Date: Wed, 20 Jan 2016 23:20:29 +0000 (+0000) Subject: Added XML conversion to ConvertToV3. X-Git-Tag: release-0.09~43 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=c143732b55176956f08ec069e4d7d710e049cbd7;hp=9466ceeb242fabe0f7e622c76bf2e8879a86345a;p=xestiaab%2F.git Added XML conversion to ConvertToV3. --- 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.