wxString wxSPropertySeg1;
wxString wxSPropertySeg2;
wxString wxSPropertyNextLine;
- int ContactLineLen = 0;
+ size_t ContactLineLen = 0;
int QuoteBreakPoint = 0;
int FNCount = 0;
int NameCount = 0;
// Add the data into the contact editor depending on what it is.
if (wxSProperty == wxT("KIND") && KindProcessed == FALSE){
-
- int intPropertyLen = wxSPropertySeg1.Len();
+
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
- int intPrevValue = 6;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
if (wxSPropertySeg2 == wxT("individual")){
} else if (wxSProperty == wxT("MEMBER")){
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
- int intPrevValue = 8;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
// Go through the list of contacts for the account and find the matching UID.
// If contact with UID doesn't match then say (unknown contact).
//vCardNames = new std::map<wxString, wxString, std::greater<wxString>>;
std::multimap<wxString, wxString, std::greater<wxString>> vCardNamesAsc;
std::multimap<wxString, wxString, std::less<wxString>> vCardNamesDsc;
- int ContactIndex = 0;
wxDir vcardaccdir(AccountDirFinal);
*/
- int intPropertyLen = wxSPropertySeg1.Len();
+ size_t intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
bool FirstToken = TRUE;
int intSplitsFound = 0;
int intSplitSize = 0;
int intPrevValue = 4;
int intPref = 0;
int intType = 0;
- int intSplitSeek = 0;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
} else if (wxSProperty == wxT("N") && NameProcessed == FALSE){
- int intPropertyLen = wxSPropertySeg1.Len();
+ size_t intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
bool FirstToken = TRUE;
int intSplitsFound = 0;
int intSplitSize = 0;
int intPrevValue = 3;
- int intPref = 0;
- int intType = 0;
int intSplitSeek = 0;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
} else if (wxSProperty == wxT("NICKNAME")){
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 10;
int intPref = 0;
int intType = 0;
- int intSplitSeek = 0;
long ListCtrlIndex;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
// Process properties.
- int intPropertyValueLen = PropertyValue.Len();
+ size_t intPropertyValueLen = PropertyValue.Len();
if (PropertyValue.Mid((intPropertyValueLen - 1), 1) == wxT("\"")){
} else if (wxSProperty == wxT("GENDER") && GenderProcessed == FALSE){
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
bool FirstToken = TRUE;;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 8;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
// Process properties.
- int intPropertyValueLen = PropertyValue.Len();
+ size_t intPropertyValueLen = PropertyValue.Len();
if (PropertyValue.Mid((intPropertyValueLen - 1), 1) == wxT("\"")){
// Process date. Preserve the remainder in the string.
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
bool BirthdayText = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 6;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
ProcessCaptureStrings(&PropertyValue);
- int intPropertyValueLen = PropertyValue.Len();
+ size_t intPropertyValueLen = PropertyValue.Len();
if (PropertyValue.Mid((intPropertyValueLen - 1), 1) == wxT("\"")){
// Process date. Preserve the remainder in the string.
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
bool AnniversaryText = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
int intPrevValue = 13;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
// Process properties.
- int intPropertyValueLen = PropertyValue.Len();
+ size_t intPropertyValueLen = PropertyValue.Len();
if (PropertyValue.Mid((intPropertyValueLen - 1), 1) == wxT("\"")){
} else if (wxSProperty == wxT("TZ")){
- int intPropertyLen = wxSPropertySeg1.Len();
+ size_t intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
bool FirstToken = TRUE;
int intSplitsFound = 0;
int intSplitSize = 0;
int intPrevValue = 4;
int intPref = 0;
int intType = 0;
- int intSplitSeek = 0;
long ListCtrlIndex;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
intPrevValue = intiter->second;
- int intPropertyValueLen = PropertyValue.Len();
+ size_t intPropertyValueLen = PropertyValue.Len();
if (PropertyValue.Mid((intPropertyValueLen - 1), 1) == wxT("\"")){
} else if (wxSProperty == wxT("ADR")){
- int intPropertyLen = wxSPropertySeg1.Len();
+ size_t intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString AddressRegion;
wxString AddressPostalCode;
wxString AddressCountry;
- bool AfterFirstToken = FALSE;
bool FirstToken = TRUE;
int intSplitsFound = 0;
int intSplitSize = 0;
int intPrevValue = 5;
int intPref = 0;
int intType = 0;
- int intSplitSeek = 0;
long ListCtrlIndex;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
} else if (wxSProperty == wxT("EMAIL")){
- int intPropertyLen = wxSPropertySeg1.Len();
+ size_t intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString AddressRegion;
wxString AddressPostalCode;
wxString AddressCountry;
- bool AfterFirstProperty = FALSE;
- bool FirstToken = TRUE;
- int intSplitSeek = 0;
+ bool FirstToken = TRUE;
int intSplitsFound = 0;
int intSplitSize = 0;
int intPrevValue = 7;
int intPref = 0;
int intType = 0;
- int intSplitPoint = 0;
long ListCtrlIndex;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
} else if (wxSProperty == wxT("IMPP")){
- int intPropertyLen = wxSPropertySeg1.Len();
+ size_t intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyTokens;
wxString IMPPType;
wxString IMPPAddress;
- bool AfterFirstProperty = FALSE;
- bool FirstToken = TRUE;
- int intSplitSeek = 0;
+ bool FirstToken = TRUE;
int intSplitsFound = 0;
int intSplitSize = 0;
int intPrevValue = 6;
int intPref = 0;
int intType = 0;
- int intSplitPoint = 0;
long ListCtrlIndex;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
// Check TEL and make sure it is functioning properly.
- int intPropertyLen = wxSPropertySeg1.Len();
+ size_t intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int> TypeSplitPoints;
wxString TelNumber;
wxString TelTypeUI;
wxString TelTypeDetail;
- bool AfterFirstProperty = FALSE;
- bool FirstToken = TRUE;
- int intSplitSeek = 0;
+ bool FirstToken = TRUE;
int intSplitsFound = 0;
int intSplitSize = 0;
int intPrevValue = 5;
// Strip out the quotes if they are there.
- int intPropertyValueLen = PropertyValue.Len();
+ size_t intPropertyValueLen = PropertyValue.Len();
if (PropertyValue.Mid((intPropertyValueLen - 1), 1) == wxT("\"")){
intPrevValue = intiter->second;
- int intPropertyValueLen = PropertyValue.Len();
+ size_t intPropertyValueLen = PropertyValue.Len();
if (PropertyValue.Mid((intPropertyValueLen - 1), 1) == wxT("\"")){
} else if (wxSProperty == wxT("LANG")){
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 6;
int intPref = 0;
int intType = 0;
- int intSplitSeek = 0;
long ListCtrlIndex;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
// Process properties.
- int intPropertyValueLen = PropertyValue.Len();
+ size_t intPropertyValueLen = PropertyValue.Len();
if (PropertyValue.Mid((intPropertyValueLen - 1), 1) == wxT("\"")){
} else if (wxSProperty == wxT("GEO")){
- int intPropertyLen = wxSPropertySeg1.Len();
+ size_t intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyValue;
wxString PropertyTokens;
wxString GeoType;
- wxString GeoData;
- bool AfterFirstToken = FALSE;
+ wxString GeoData;
bool FirstToken = TRUE;
int intSplitsFound = 0;
int intSplitSize = 0;
int intPrevValue = 5;
int intPref = 0;
int intType = 0;
- int intSplitSeek = 0;
long ListCtrlIndex;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
// Process properties.
- int intPropertyValueLen = PropertyValue.Len();
+ size_t intPropertyValueLen = PropertyValue.Len();
if (PropertyValue.Mid((intPropertyValueLen - 1), 1) == wxT("\"")){
} else if (wxSProperty == wxT("RELATED")){
- int intPropertyLen = wxSPropertySeg1.Len();
+ size_t intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyTokens;
wxString RelatedType;
wxString RelatedTypeOriginal;
- wxString RelatedName;
- bool AfterFirstToken = FALSE;
+ wxString RelatedName;
bool FirstToken = TRUE;
int intSplitsFound = 0;
int intSplitSize = 0;
int intPrevValue = 9;
- int intPref = 0;
- int intType = 0;
- int intSplitSeek = 0;
+ int intPref = 0;
long ListCtrlIndex;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
// Process properties.
- int intPropertyValueLen = PropertyValue.Len();
+ size_t intPropertyValueLen = PropertyValue.Len();
if (PropertyValue.Mid((intPropertyValueLen - 1), 1) == wxT("\"")){
} else if (wxSProperty == wxT("URL")){
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 5;
int intPref = 0;
int intType = 0;
- int intSplitSeek = 0;
long ListCtrlIndex;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
// Process properties.
- int intPropertyValueLen = PropertyValue.Len();
+ size_t intPropertyValueLen = PropertyValue.Len();
if (PropertyValue.Mid((intPropertyValueLen - 1), 1) == wxT("\"")){
} else if (wxSProperty == wxT("TITLE")) {
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 7;
int intPref = 0;
int intType = 0;
- int intSplitSeek = 0;
long ListCtrlIndex;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
// Process properties.
- int intPropertyValueLen = PropertyValue.Len();
+ size_t intPropertyValueLen = PropertyValue.Len();
if (PropertyValue.Mid((intPropertyValueLen - 1), 1) == wxT("\"")){
} else if (wxSProperty == wxT("ROLE")) {
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 6;
int intPref = 0;
int intType = 0;
- int intSplitSeek = 0;
long ListCtrlIndex;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
// Process properties.
- int intPropertyValueLen = PropertyValue.Len();
+ size_t intPropertyValueLen = PropertyValue.Len();
if (PropertyValue.Mid((intPropertyValueLen - 1), 1) == wxT("\"")){
} else if (wxSProperty == wxT("ORG")) {
- int intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 5;
int intPref = 0;
int intType = 0;
- int intSplitSeek = 0;
long ListCtrlIndex;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
// Process properties.
- int intPropertyValueLen = PropertyValue.Len();
+ size_t intPropertyValueLen = PropertyValue.Len();
if (PropertyValue.Mid((intPropertyValueLen - 1), 1) == wxT("\"")){
intValueSeek++;
} else if (wxSProperty == wxT("NOTE")) {
-
- int intPropertyLen = wxSPropertySeg1.Len();
+
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 6;
int intPref = 0;
int intType = 0;
- int intSplitSeek = 0;
- long ListCtrlIndex;
+ long ListCtrlIndex;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
// Process properties.
- int intPropertyValueLen = PropertyValue.Len();
+ size_t intPropertyValueLen = PropertyValue.Len();
if (PropertyValue.Mid((intPropertyValueLen - 1), 1) == wxT("\"")){
} else if (wxSProperty == wxT("CATEGORIES")) {
- int intPropertyLen = wxSPropertySeg1.Len();
+ size_t intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
// Process properties.
- int intPropertyValueLen = PropertyValue.Len();
+ size_t intPropertyValueLen = PropertyValue.Len();
if (PropertyValue.Mid((intPropertyValueLen - 1), 1) == wxT("\"")){
} else if (wxSProperty == wxT("PHOTO")) {
- int intPropertyLen = wxSPropertySeg1.Len();
+ size_t intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
int intPrevValue = 7;
int intPref = 0;
int intType = 0;
- int intSplitSeek = 0;
long ListCtrlIndex;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
// Process properties.
- int intPropertyValueLen = PropertyValue.Len();
+ size_t intPropertyValueLen = PropertyValue.Len();
if (PropertyValue.Mid((intPropertyValueLen - 1), 1) == wxT("\"")){
wxString wxSPhotoData;
std::string base64enc;
- if (intSplitsFound = 0){
+ if (intSplitsFound == 0){
} else {
} else if (wxSProperty == wxT("LOGO")) {
- int intPropertyLen = wxSPropertySeg1.Len();
+ size_t intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
int intPrevValue = 6;
int intPref = 0;
int intType = 0;
- int intSplitSeek = 0;
long ListCtrlIndex;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
// Process properties.
- int intPropertyValueLen = PropertyValue.Len();
+ size_t intPropertyValueLen = PropertyValue.Len();
if (PropertyValue.Mid((intPropertyValueLen - 1), 1) == wxT("\"")){
ProcessCaptureStrings(&wxSPropertySeg2);
- if (intSplitsFound = 0){
+ if (intSplitsFound == 0){
} else {
} else if (wxSProperty == wxT("SOUND")) {
- int intPropertyLen = wxSPropertySeg1.Len();
+ size_t intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
int intPrevValue = 7;
int intPref = 0;
int intType = 0;
- int intSplitSeek = 0;
long ListCtrlIndex;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
// Process properties.
- int intPropertyValueLen = PropertyValue.Len();
+ size_t intPropertyValueLen = PropertyValue.Len();
if (PropertyValue.Mid((intPropertyValueLen - 1), 1) == wxT("\"")){
wxString wxSSoundData;
std::string base64enc;
- if (intSplitsFound = 0){
+ if (intSplitsFound == 0){
} else {
intValueSeek++;
} else if (wxSProperty == wxT("CALURI")){
-
- int intPropertyLen = wxSPropertySeg1.Len();
+
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 8;
int intPref = 0;
int intType = 0;
- int intSplitSeek = 0;
long ListCtrlIndex;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
// Process properties.
- int intPropertyValueLen = PropertyValue.Len();
+ size_t intPropertyValueLen = PropertyValue.Len();
if (PropertyValue.Mid((intPropertyValueLen - 1), 1) == wxT("\"")){
intValueSeek++;
} else if (wxSProperty == wxT("CALADRURI")){
-
- int intPropertyLen = wxSPropertySeg1.Len();
+
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 11;
int intPref = 0;
int intType = 0;
- int intSplitSeek = 0;
long ListCtrlIndex;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
// Process properties.
- int intPropertyValueLen = PropertyValue.Len();
+ size_t intPropertyValueLen = PropertyValue.Len();
if (PropertyValue.Mid((intPropertyValueLen - 1), 1) == wxT("\"")){
intValueSeek++;
} else if (wxSProperty == wxT("FBURL")){
-
- int intPropertyLen = wxSPropertySeg1.Len();
+
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
- bool FirstToken = TRUE;
- int intSplitsFound = 0;
- int intSplitSize = 0;
+ bool FirstToken = TRUE;
int intPrevValue = 7;
int intPref = 0;
int intType = 0;
- int intSplitSeek = 0;
long ListCtrlIndex;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
// Process properties.
- int intPropertyValueLen = PropertyValue.Len();
+ size_t intPropertyValueLen = PropertyValue.Len();
if (PropertyValue.Mid((intPropertyValueLen - 1), 1) == wxT("\"")){
intValueSeek++;
} else if (wxSProperty == wxT("KEY")){
- int intPropertyLen = wxSPropertySeg1.Len();
+ size_t intPropertyLen = wxSPropertySeg1.Len();
std::map<int, int> SplitPoints;
std::map<int, int> SplitLength;
std::map<int, int>::iterator SLiter;
wxString PropertyName;
wxString PropertyValue;
wxString PropertyTokens;
- bool AfterFirstToken = FALSE;
bool FirstToken = TRUE;
int intSplitsFound = 0;
int intSplitSize = 0;
int intPrevValue = 5;
int intPref = 0;
int intType = 0;
- int intSplitSeek = 0;
long ListCtrlIndex;
SplitValues(&wxSPropertySeg1, &SplitPoints, &SplitLength, intPrevValue);
// Process properties.
- int intPropertyValueLen = PropertyValue.Len();
+ size_t intPropertyValueLen = PropertyValue.Len();
if (PropertyValue.Mid((intPropertyValueLen - 1), 1) == wxT("\"")){
wxString wxSKeyData;
std::string base64enc;
- if (intSplitsFound = 0){
+ if (intSplitsFound == 0){
} else {
KeyListDataType.insert(std::make_pair(intValueSeek, wxSKeyMIME));
- if (intType = 0){
-
- KeyListType.insert(std::make_pair(intValueSeek, wxT("")));
-
- } else if (intType = 1){
-
- KeyListType.insert(std::make_pair(intValueSeek, wxT("home")));
-
- } else if (intType = 2){
-
- KeyListType.insert(std::make_pair(intValueSeek, wxT("work")));
-
- }
-
+ switch (intType){
+ case 0: KeyListType.insert(std::make_pair(intValueSeek, wxT("")));
+ case 1: KeyListType.insert(std::make_pair(intValueSeek, wxT("home")));
+ case 2: KeyListType.insert(std::make_pair(intValueSeek, wxT("work")));
+ }
+
KeyListTokens.insert(std::make_pair(intValueSeek, PropertyTokens));
KeyCount++;
std::map<int,int> *SplitLength,
int intSize){
- int intPropertyLen = PropertyLine->Len();
+ size_t intPropertyLen = PropertyLine->Len();
int intSplitsFound = 0;
int intSplitSize = 0;
int intSplitSeek = 0;