You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-07 03:22:57 +03:00
clang format apply
This commit is contained in:
@@ -22,28 +22,29 @@ using namespace std;
|
||||
|
||||
namespace winport
|
||||
{
|
||||
|
||||
bool sedit(string& line, const string& find, const string& replace)
|
||||
{
|
||||
string::size_type idx;
|
||||
idx = line.find(find);
|
||||
string::size_type idx;
|
||||
idx = line.find(find);
|
||||
|
||||
if (idx == string::npos) return false;
|
||||
if (idx == string::npos)
|
||||
return false;
|
||||
|
||||
line.replace(idx, find.length(), replace);
|
||||
return true;
|
||||
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);
|
||||
string::size_type idx;
|
||||
idx = line.find(find);
|
||||
|
||||
if (idx == string::npos) return line;
|
||||
if (idx == string::npos)
|
||||
return line;
|
||||
|
||||
string nline(line);
|
||||
nline.replace(idx, find.length(), replace);
|
||||
return nline;
|
||||
string nline(line);
|
||||
nline.replace(idx, find.length(), replace);
|
||||
return nline;
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace winport
|
||||
|
Reference in New Issue
Block a user