From ff455de2184e73bd33a2e706665ed0dec81cb5e4 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Mon, 28 Dec 2015 05:46:50 +0000 Subject: [PATCH] Created ProcessNameValue for splitting name & value data. --- source/contacteditor/ContactDataObject.cpp | 10 ++++++++++ source/contacteditor/ContactDataObject.h | 4 ++++ 2 files changed, 14 insertions(+) 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, -- 2.39.5