| 8 | #include <vector> |
| 9 | |
| 10 | class cmNewLineStyle |
| 11 | { |
| 12 | public: |
| 13 | cmNewLineStyle(); |
| 14 | |
| 15 | enum Style |
| 16 | { |
| 17 | Invalid, |
| 18 | // LF = '\n', 0x0A, 10 |
| 19 | // CR = '\r', 0x0D, 13 |
| 20 | LF, // Unix |
| 21 | CRLF // Dos |
| 22 | }; |
| 23 | |
| 24 | void SetStyle(Style); |
| 25 | Style GetStyle() const; |
| 26 | |
| 27 | bool IsValid() const; |
| 28 | |
| 29 | bool ReadFromArguments(std::vector<std::string> const& args, |
| 30 | std::string& errorString); |
| 31 | |
| 32 | std::string GetCharacters() const; |
| 33 | |
| 34 | private: |
| 35 | Style NewLineStyle = Invalid; |
| 36 | }; |
no outgoing calls
no test coverage detected
searching dependent graphs…