| 11 | |
| 12 | |
| 13 | std::string underscorize(const std::string& str) |
| 14 | { |
| 15 | std::string res = str; |
| 16 | for (unsigned int i = 0; i < res.length(); ++i) |
| 17 | { |
| 18 | if (!isalpha(res[i]) && !isdigit(res[i])) |
| 19 | { |
| 20 | res[i] = '_'; |
| 21 | } |
| 22 | } |
| 23 | return res; |
| 24 | } |
| 25 | |
| 26 | std::string stub_name(const std::string& name) |
| 27 | { |
no outgoing calls
no test coverage detected