From: Steve Brokenshire Date: Mon, 28 Dec 2015 05:46:50 +0000 (+0000) Subject: Created ProcessNameValue for splitting name & value data. X-Git-Tag: release-0.09~150 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=ff455de2184e73bd33a2e706665ed0dec81cb5e4;p=xestiaab%2F.git Created ProcessNameValue for splitting name & value data. --- diff --git a/source/contacteditor/ContactDataObject.cpp b/source/contacteditor/ContactDataObject.cpp index cba012d..85b1320 100644 --- a/source/contacteditor/ContactDataObject.cpp +++ b/source/contacteditor/ContactDataObject.cpp @@ -4767,6 +4767,16 @@ void ContactDataObject::ProcessVendor(wxString PropertySeg1, wxString PropertySe } +void ProcessNameValue(wxString *PropertyData, + wxString *PropertyName, + wxString *PropertyValue){ + + wxStringTokenizer PropertyElement (*PropertyData, wxT("=")); + *PropertyName = PropertyElement.GetNextToken(); + *PropertyValue = PropertyElement.GetNextToken(); + +} + void ProcessTokens(wxString *PropertyName, wxString *PropertyValue, wxString *PropertyTokens, diff --git a/source/contacteditor/ContactDataObject.h b/source/contacteditor/ContactDataObject.h index 06a6f93..6317312 100644 --- a/source/contacteditor/ContactDataObject.h +++ b/source/contacteditor/ContactDataObject.h @@ -618,6 +618,10 @@ void CheckType(wxString *PropertySeg1, int *intPrevValue, PropertyType *intType); +void ProcessNameValue(wxString *PropertyData, + wxString *PropertyName, + wxString *PropertyValue); + void ProcessTokens(wxString *PropertyName, wxString *PropertyValue, wxString *PropertyTokens,