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

Side by Side Diff: chrome/browser/net/quoted_printable.h

Issue 6542069: Add an encoder/decoder for quoted-printable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moving code from base to chrome/browser/net Created 9 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 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 CHROME_BROWSER_NET_QUOTED_PRINTABLE_H_
6 #define CHROME_BROWSER_NET_QUOTED_PRINTABLE_H_
7 #pragma once
8
9 #include <string>
10
11 // Some functions to encode/decode with the quoted-printable encoding.
12 // See http://tools.ietf.org/html/rfc2045#section-6.7
13
14 namespace chrome_browser_net {
brettw 2011/02/28 17:33:14 We're trying to standardize on using nested namesp
Jay Civelli 2011/02/28 19:25:53 Done.
15
16 // Encodes the input string with the quoted-printable encoding.
17 void QuotedPrintableEncode(const std::string& input, std::string* output);
18
19 // Decodes the quoted-printable input string. Returns true if the input string
20 // was wellformed quoted-printable, false otherwise, in which case it still
21 // decodes as much of the message as possible.
22 bool QuotedPrintableDecode(const std::string& input, std::string* output);
23
24 // Returns 0 if |iter| does not point to an end-of-line, the number of chars
25 // that constitutes that EOL otherwise (1 for LF, 2 for CR-LF).
26 // Exposed as it is also used in unit-tests.
27 int IsEOL(const std::string::const_iterator& iter, const std::string& input);
tfarina 2011/02/28 18:32:44 Is this going to be used by the consumers (i.e is
Jay Civelli 2011/02/28 19:25:53 As the comment mentions, this is also used by the
28
29 } // namespace chrome_browser_net
30
31 #endif // CHROME_BROWSER_NET_QUOTED_PRINTABLE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/quoted_printable.cc » ('j') | chrome/browser/net/quoted_printable.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698