Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Implemented initial version of ProcessTextVectors in common/text.{cpp,h}
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sat, 23 Jan 2016 11:04:04 +0000 (11:04 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sat, 23 Jan 2016 11:04:04 +0000 (11:04 +0000)
source/common/text.cpp [new file with mode: 0644]
source/common/text.h [new file with mode: 0644]

diff --git a/source/common/text.cpp b/source/common/text.cpp
new file mode 100644 (file)
index 0000000..08a732c
--- /dev/null
@@ -0,0 +1,34 @@
+#include "text.h"
+
+using namespace std;
+
+multimap<string, string> ProcessTextVectors(vector<string> *TextProperties,
+       vector<string> *TextValues,
+       bool SearchMultiple,
+       string Property){
+       
+       multimap<string,string> ProcessResult;
+               
+       // Go through each of the values.
+               
+       int TextSeekCount = 0;
+       int TextPropertySize = 0;
+       int PropertySeekCount = 0;
+               
+       for (vector<string>::iterator iter = TextProperties->begin();
+               iter != TextProperties->end(); iter++){
+       
+               if (*iter == Property){
+                       
+                       ProcessResult.insert(make_pair((*TextProperties)[PropertySeekCount], 
+                               (*TextValues)[PropertySeekCount]));
+                       
+               }
+                       
+               PropertySeekCount++;
+                       
+       }
+               
+       return ProcessResult;
+               
+}
\ No newline at end of file
diff --git a/source/common/text.h b/source/common/text.h
new file mode 100644 (file)
index 0000000..d730aae
--- /dev/null
@@ -0,0 +1,9 @@
+#include <string>
+#include <vector>
+#include <map>
+#include <iostream>
+
+std::multimap<std::string, std::string> ProcessTextVectors(std::vector<std::string> *TextProperties,
+       std::vector<std::string> *TextValues,
+       bool SearchMultiple,
+       std::string Property);
\ No newline at end of file
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