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

Side by Side Diff: Source/wtf/text/TextEncoding.h

Issue 19845004: Do not normalize into NFC the values of form fields (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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
« no previous file with comments | « Source/wtf/text/TextCodec.h ('k') | Source/wtf/text/TextEncoding.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 const TextEncoding& closestByteBasedEquivalent() const; 67 const TextEncoding& closestByteBasedEquivalent() const;
68 const TextEncoding& encodingForFormSubmission() const; 68 const TextEncoding& encodingForFormSubmission() const;
69 69
70 String decode(const char* str, size_t length) const 70 String decode(const char* str, size_t length) const
71 { 71 {
72 bool ignored; 72 bool ignored;
73 return decode(str, length, false, ignored); 73 return decode(str, length, false, ignored);
74 } 74 }
75 String decode(const char*, size_t length, bool stopOnError, bool& sawError) const; 75 String decode(const char*, size_t length, bool stopOnError, bool& sawError) const;
76 CString encode(const String&, UnencodableHandling) const; 76 CString encode(const String&, UnencodableHandling) const;
tkent 2013/07/22 23:38:09 IMO, we had better rename the existing encode() to
77 CString encode(const String&, NormalizationMode, UnencodableHandling) const;
77 78
78 UChar backslashAsCurrencySymbol() const; 79 UChar backslashAsCurrencySymbol() const;
79 80
80 private: 81 private:
81 bool isNonByteBasedEncoding() const; 82 bool isNonByteBasedEncoding() const;
82 bool isUTF7Encoding() const; 83 bool isUTF7Encoding() const;
83 84
84 const char* m_name; 85 const char* m_name;
85 UChar m_backslashAsCurrencySymbol; 86 UChar m_backslashAsCurrencySymbol;
86 }; 87 };
(...skipping 15 matching lines...) Expand all
102 using WTF::ASCIIEncoding; 103 using WTF::ASCIIEncoding;
103 using WTF::Latin1Encoding; 104 using WTF::Latin1Encoding;
104 using WTF::UTF16BigEndianEncoding; 105 using WTF::UTF16BigEndianEncoding;
105 using WTF::UTF16LittleEndianEncoding; 106 using WTF::UTF16LittleEndianEncoding;
106 using WTF::UTF32BigEndianEncoding; 107 using WTF::UTF32BigEndianEncoding;
107 using WTF::UTF32LittleEndianEncoding; 108 using WTF::UTF32LittleEndianEncoding;
108 using WTF::UTF8Encoding; 109 using WTF::UTF8Encoding;
109 using WTF::WindowsLatin1Encoding; 110 using WTF::WindowsLatin1Encoding;
110 111
111 #endif // TextEncoding_h 112 #endif // TextEncoding_h
OLDNEW
« no previous file with comments | « Source/wtf/text/TextCodec.h ('k') | Source/wtf/text/TextEncoding.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698