Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1117)

Unified Diff: remoting/base/util.h

Issue 10441131: [Chromoting] Handle CR-LF correctly when transferring text items to and from the clipboard on a Win… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a static_cast to a unit test. Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/base/util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/util.h
diff --git a/remoting/base/util.h b/remoting/base/util.h
index 07b501b5bd5f718d0f4592c0015b7c6a6b6ac870..6049298173ae48fbb54ffadd142227c84854c83a 100644
--- a/remoting/base/util.h
+++ b/remoting/base/util.h
@@ -82,6 +82,12 @@ void CopyRGB32Rect(const uint8* source_buffer,
const SkIRect& dest_buffer_rect,
const SkIRect& dest_rect);
+// Replaces every occurrence of "\n" in a string by "\r\n".
+std::string ReplaceLfByCrLf(const std::string& in);
+
+// Replaces every occurrence of "\r\n" in a string by "\n".
+std::string ReplaceCrLfByLf(const std::string& in);
+
} // namespace remoting
#endif // REMOTING_BASE_UTIL_H_
« no previous file with comments | « no previous file | remoting/base/util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698