From c880db53427fcae42cf286dbf707b0f422fce411 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Tue, 15 Mar 2016 20:18:01 +0000 Subject: [PATCH] Added comments to describe functions in vcard/vcard34conv.cpp --- source/vcard/vcard34conv.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/source/vcard/vcard34conv.cpp b/source/vcard/vcard34conv.cpp index 4cccfa3..9137a58 100644 --- a/source/vcard/vcard34conv.cpp +++ b/source/vcard/vcard34conv.cpp @@ -33,6 +33,8 @@ // RFC 6350 specification. vCard34Conv::vCard34Conv(){ + + // Setup the vCard34Conv object. vCardBegin = FALSE; vCardEnd = FALSE; @@ -50,6 +52,8 @@ void vCard34Conv::ConvertV4PropertyProc(wxString *wxSPropertyName, std::map *PropertyLockMap, bool ProcessItemData, bool *VCardV3Value, bool *XVCardV4Value){ + // Convert and format data to vCard 4.0 specifications. + wxString wxSProperty; wxString wxSPropertySeg1Chopped; size_t intPropertyLen; @@ -5953,7 +5957,9 @@ void vCard34Conv::ConvertV4PropertyProc(wxString *wxSPropertyName, void vCard34Conv::ProcessCaptureStringsProc(wxString *strCapture){ - CaptureString(strCapture, FALSE); + // Process code for capturing the strings. + + CaptureString(strCapture, FALSE); } @@ -5962,6 +5968,8 @@ void vCard34Conv::SplitValues(wxString *PropertyLine, std::map *SplitLength, int intSize){ + // Split the values as required. + size_t intPropertyLen = PropertyLine->Len(); int intSplitsFound = 0; int intSplitSize = 0; @@ -6014,6 +6022,9 @@ void vCard34Conv::SplitValuesData(wxString *PropertyLine, int intSize, std::map *SplitData){ + + // Split the data values as required. + wxString DataStr; wxStringTokenizer PropertyElement; wxString PropertyName; -- 2.39.2