| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef REMOTING_HOST_CLIPBOARD_UTIL_H_ |
| 6 #define REMOTING_HOST_CLIPBOARD_UTIL_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/basictypes.h" |
| 11 |
| 12 namespace remoting { |
| 13 |
| 14 class ClipboardUtil { |
| 15 public: |
| 16 // Replaces every occurrence of "\n" in a string by "\r\n". |
| 17 static std::string ReplaceLfByCrLf(const std::string& in); |
| 18 // Replaces every occurrence of "\r\n" in a string by "\n". |
| 19 static std::string ReplaceCrLfByLf(const std::string& in); |
| 20 |
| 21 DISALLOW_COPY_AND_ASSIGN(ClipboardUtil); |
| 22 }; |
| 23 |
| 24 } // namespace remoting |
| 25 |
| 26 #endif REMOTING_HOST_CLIPBOARD_UTIL_H_ |
| OLD | NEW |