Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Implemented initial version of ProcessTextVectors in common/text.{cpp,h}
[xestiacalendar/.git] / source / common / text.cpp
1 #include "text.h"
3 using namespace std;
5 multimap<string, string> ProcessTextVectors(vector<string> *TextProperties,
6         vector<string> *TextValues,
7         bool SearchMultiple,
8         string Property){
9         
10         multimap<string,string> ProcessResult;
11                 
12         // Go through each of the values.
13                 
14         int TextSeekCount = 0;
15         int TextPropertySize = 0;
16         int PropertySeekCount = 0;
17                 
18         for (vector<string>::iterator iter = TextProperties->begin();
19                 iter != TextProperties->end(); iter++){
20         
21                 if (*iter == Property){
22                         
23                         ProcessResult.insert(make_pair((*TextProperties)[PropertySeekCount], 
24                                 (*TextValues)[PropertySeekCount]));
25                         
26                 }
27                         
28                 PropertySeekCount++;
29                         
30         }
31                 
32         return ProcessResult;
33                 
34 }
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy