| 2 | #include "StringUtil.h" |
| 3 | |
| 4 | char * Tidy(char * s) |
| 5 | { |
| 6 | if (s == NULL || *s == '\0') |
| 7 | return s; |
| 8 | |
| 9 | char * p = s + strlen(s); |
| 10 | |
| 11 | p--; |
| 12 | while (p >= s && (*p == ' ' || *p == '\r' || *p == '\n')) |
| 13 | { |
| 14 | *p = 0; |
| 15 | p--; |
| 16 | } |
| 17 | return s; |
| 18 | } |
| 19 | |
| 20 | void Split(ConstStringRef str, char split_char, std::vector<ConstStringRef> * pieces) |
| 21 | { |
no outgoing calls
no test coverage detected