refactor(clang-format): Apply fixes

This commit is contained in:
Michael Carlberg
2016-11-25 08:42:31 +01:00
parent 1adb1be404
commit 8db3e79919
41 changed files with 185 additions and 189 deletions

View File

@ -81,12 +81,11 @@ namespace string_util {
/**
* Replace all occurrences with bounded replacement
*/
string replace_all_bounded(const string& haystack, string needle, string replacement,
size_t min, size_t max, size_t start, size_t end) {
string replace_all_bounded(
const string& haystack, string needle, string replacement, size_t min, size_t max, size_t start, size_t end) {
if (max != 0 && replacement.length() > max) {
replacement = replacement.erase(max);
}
else if (min != 0 && replacement.length() < min) {
} else if (min != 0 && replacement.length() < min) {
replacement.insert(0, min - replacement.length(), ' ');
}
return replace_all(haystack, needle, replacement, start, end);