#include "text.h" using namespace std; multimap ProcessTextVectors(vector *TextProperties, vector *TextValues, bool SearchMultiple, string Property){ multimap ProcessResult; // Go through each of the values. int TextSeekCount = 0; int TextPropertySize = 0; int PropertySeekCount = 0; string PropertyName = ""; int PropertyNameSize = 0; char BufferChar = 0; for (vector::iterator iter = TextProperties->begin(); iter != TextProperties->end(); iter++){ TextPropertySize = iter->size(); if (TextPropertySize == 0){ // Text property size is 0. Go to the next // pair. continue; } // Get the property data up to the first semi-colon. while (TextSeekCount < TextPropertySize){ BufferChar = (*iter)[TextSeekCount]; if (BufferChar == ';'){ break; } PropertyName += BufferChar; TextSeekCount++; } if (*iter == Property || PropertyName == Property){ ProcessResult.insert(make_pair((*TextProperties)[PropertySeekCount], (*TextValues)[PropertySeekCount])); } PropertySeekCount++; TextPropertySize = 0; TextSeekCount = 0; PropertyName.clear(); } return ProcessResult; }