You've already forked mariadb-columnstore-engine
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:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user