| 40 | namespace cpptempl { |
| 41 | |
| 42 | void replaceAll(std::string &str, const std::string &from, const std::string &to) |
| 43 | { |
| 44 | size_t start_pos = 0; |
| 45 | while ((start_pos = str.find(from, start_pos)) != std::string::npos) |
| 46 | { |
| 47 | str.replace(start_pos, from.length(), to); |
| 48 | start_pos += to.length(); |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | namespace impl { |
| 53 | // Types of tokens in control statements. |
no outgoing calls
no test coverage detected