1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-05 16:15:50 +03:00

Reformat all code to coding standard

This commit is contained in:
Andrew Hutchings
2017-10-26 17:18:17 +01:00
parent 4985f3456e
commit 01446d1e22
1296 changed files with 403852 additions and 353747 deletions

View File

@@ -14,32 +14,36 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA. */
#include <string>
using namespace std;
#include "sedit.h"
namespace winport
{
bool sedit(string& line, const string& find, const string& replace)
{
string::size_type idx;
idx = line.find(find);
if (idx == string::npos) return false;
line.replace(idx, find.length(), replace);
return true;
}
const string sedit2(const string& line, const string& find, const string& replace)
{
string::size_type idx;
idx = line.find(find);
if (idx == string::npos) return line;
string nline(line);
nline.replace(idx, find.length(), replace);
return nline;
}
}
#include <string>
using namespace std;
#include "sedit.h"
namespace winport
{
bool sedit(string& line, const string& find, const string& replace)
{
string::size_type idx;
idx = line.find(find);
if (idx == string::npos) return false;
line.replace(idx, find.length(), replace);
return true;
}
const string sedit2(const string& line, const string& find, const string& replace)
{
string::size_type idx;
idx = line.find(find);
if (idx == string::npos) return line;
string nline(line);
nline.replace(idx, find.length(), replace);
return nline;
}
}