| 1948 | // (2) if yes, removes any CR, else convert every CR to LF |
| 1949 | |
| 1950 | void CleanStringLineEndings(const string& src, string* dst, |
| 1951 | bool auto_end_last_line) { |
| 1952 | if (dst->empty()) { |
| 1953 | dst->append(src); |
| 1954 | CleanStringLineEndings(dst, auto_end_last_line); |
| 1955 | } else { |
| 1956 | string tmp = src; |
| 1957 | CleanStringLineEndings(&tmp, auto_end_last_line); |
| 1958 | dst->append(tmp); |
| 1959 | } |
| 1960 | } |
| 1961 | |
| 1962 | void CleanStringLineEndings(string* str, bool auto_end_last_line) { |
| 1963 | int output_pos = 0; |
nothing calls this directly
no test coverage detected