remove underscores from a string
| 328 | |
| 329 | /// remove underscores from a string |
| 330 | inline std::string remove_underscore(std::string str) { |
| 331 | str.erase(std::remove(std::begin(str), std::end(str), '_'), std::end(str)); |
| 332 | return str; |
| 333 | } |
| 334 | |
| 335 | /// Find and replace a substring with another substring |
| 336 | inline std::string find_and_replace(std::string str, std::string from, std::string to) { |
no test coverage detected