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

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

Issue 143943017: Added Base64 support in TextEncoder and TextDecoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 bool isUTF7Encoding() const; 65 bool isUTF7Encoding() const;
66 66
67 const char* m_name; 67 const char* m_name;
68 UChar m_backslashAsCurrencySymbol; 68 UChar m_backslashAsCurrencySymbol;
69 }; 69 };
70 70
71 inline bool operator==(const TextEncoding& a, const TextEncoding& b) { return a. name() == b.name(); } 71 inline bool operator==(const TextEncoding& a, const TextEncoding& b) { return a. name() == b.name(); }
72 inline bool operator!=(const TextEncoding& a, const TextEncoding& b) { return a. name() != b.name(); } 72 inline bool operator!=(const TextEncoding& a, const TextEncoding& b) { return a. name() != b.name(); }
73 73
74 WTF_EXPORT const TextEncoding& ASCIIEncoding(); 74 WTF_EXPORT const TextEncoding& ASCIIEncoding();
75 WTF_EXPORT const TextEncoding& Base64Encoding();
75 WTF_EXPORT const TextEncoding& Latin1Encoding(); 76 WTF_EXPORT const TextEncoding& Latin1Encoding();
76 WTF_EXPORT const TextEncoding& UTF16BigEndianEncoding(); 77 WTF_EXPORT const TextEncoding& UTF16BigEndianEncoding();
77 WTF_EXPORT const TextEncoding& UTF16LittleEndianEncoding(); 78 WTF_EXPORT const TextEncoding& UTF16LittleEndianEncoding();
78 WTF_EXPORT const TextEncoding& UTF32BigEndianEncoding(); 79 WTF_EXPORT const TextEncoding& UTF32BigEndianEncoding();
79 WTF_EXPORT const TextEncoding& UTF32LittleEndianEncoding(); 80 WTF_EXPORT const TextEncoding& UTF32LittleEndianEncoding();
80 WTF_EXPORT const TextEncoding& UTF8Encoding(); 81 WTF_EXPORT const TextEncoding& UTF8Encoding();
81 WTF_EXPORT const TextEncoding& WindowsLatin1Encoding(); 82 WTF_EXPORT const TextEncoding& WindowsLatin1Encoding();
82 83
83 } // namespace WTF 84 } // namespace WTF
84 85
85 using WTF::ASCIIEncoding; 86 using WTF::ASCIIEncoding;
87 using WTF::Base64Encoding;
86 using WTF::Latin1Encoding; 88 using WTF::Latin1Encoding;
87 using WTF::UTF16BigEndianEncoding; 89 using WTF::UTF16BigEndianEncoding;
88 using WTF::UTF16LittleEndianEncoding; 90 using WTF::UTF16LittleEndianEncoding;
89 using WTF::UTF32BigEndianEncoding; 91 using WTF::UTF32BigEndianEncoding;
90 using WTF::UTF32LittleEndianEncoding; 92 using WTF::UTF32LittleEndianEncoding;
91 using WTF::UTF8Encoding; 93 using WTF::UTF8Encoding;
92 using WTF::WindowsLatin1Encoding; 94 using WTF::WindowsLatin1Encoding;
93 95
94 #endif // TextEncoding_h 96 #endif // TextEncoding_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698