5 multimap<string, string> ProcessTextVectors(vector<string> *TextProperties,
6 vector<string> *TextValues,
10 multimap<string,string> ProcessResult;
12 // Go through each of the values.
14 int TextSeekCount = 0;
15 int TextPropertySize = 0;
16 int PropertySeekCount = 0;
17 string PropertyName = "";
18 int PropertyNameSize = 0;
21 for (vector<string>::iterator iter = TextProperties->begin();
22 iter != TextProperties->end(); iter++){
24 TextPropertySize = iter->size();
26 if (TextPropertySize == 0){
28 // Text property size is 0. Go to the next
35 // Get the property data up to the first semi-colon.
37 while (TextSeekCount < TextPropertySize){
39 BufferChar = (*iter)[TextSeekCount];
41 if (BufferChar == ';'){
45 PropertyName += BufferChar;
51 if (*iter == Property || PropertyName == Property){
53 ProcessResult.insert(make_pair((*TextProperties)[PropertySeekCount],
54 (*TextValues)[PropertySeekCount]));
56 // Check to continue if one is found.
58 if (SearchMultiple == false){
60 // Found one, don't search for anymore.