(input: &str)
| 58 | } |
| 59 | |
| 60 | pub fn strip_trailing_newline(input: &str) -> &str { |
| 61 | input |
| 62 | .strip_suffix(CRLF) |
| 63 | .or_else(|| input.strip_suffix(LF)) |
| 64 | .unwrap_or(input) |
| 65 | } |
| 66 | |
| 67 | pub fn split_lines(string: &str) -> Vec<&str> { |
| 68 | if string.contains(CRLF) { |