1
0
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:
Leonid Fedorov
2022-02-11 12:24:40 +00:00
parent 509f005be7
commit 7c808317dc
1367 changed files with 394342 additions and 413129 deletions

View File

@@ -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