Andrew Gaul
|
7638b5b3e3
|
Prefer std::string::rbegin over operator[] (#1673)
This is more concise and safer due to not repeating the variable name.
We cannot use std::string::back since it is not available in C++03.
|
2021-06-13 13:26:38 +09:00 |
|
Andrew Gaul
|
d019dda4f7
|
Simplify substr manipulations with erase (#1532)
This avoids creating a new std::string.
|
2021-01-25 18:02:32 +09:00 |
|
Andrew Gaul
|
1043e08dfa
|
Remove uses of implicit namespace std
Fixed via:
sed -i '/using namespace std/{N;d}' src/*.cpp
sed -i 's/ string/ std::string/g' src/*.cpp
sed -i 's/(string/(std::string/g' src/*.cpp
sed -i 's/\[string/\[std::string/g' src/*.cpp
sed -i 's/^string/std::string/g' src/*.cpp
sed -i 's/ ifstream/ std::ifstream/g' src/*.cpp
sed -i 's/ istringstream/ std::istringstream/g' src/*.cpp
sed -i 's/ ostringstream/ std::ostringstream/g' src/*.cpp
sed -i 's/ max(/ std::max(/g' src/*.cpp
sed -i 's/ min(/ std::min(/g' src/*.cpp
sed -i 's/ endl/ std::endl/g' src/*.cpp
|
2020-09-13 11:57:20 +09:00 |
|
Takeshi Nakatani
|
b5ffd419d8
|
Source file division and set 4 spaces and cleanup
|
2020-08-26 17:43:50 +09:00 |
|