Initial Import from SVN

This commit is contained in:
Matt Jenkins
2014-04-09 14:27:18 +01:00
parent 8976e834c4
commit 895f96d2f7
3153 changed files with 748589 additions and 0 deletions

27
tools/configsys/util.cpp Normal file
View File

@@ -0,0 +1,27 @@
#include <iostream>
#include <fstream>
#include <vector>
#include <map>
#include <string>
#include <sstream>
using namespace std;
void replace_all(string &haystack, string from, string to)
{
size_t pos;
pos = haystack.find(from);
while(pos != haystack.npos)
{
haystack.replace(pos, from.size(), to);
pos = haystack.find(from);
}
}
void uc(string &s)
{
for(unsigned int l = 0; l < s.length(); l++)
{
s[l] = toupper(s[l]);
}
}