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

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

Issue 2478653002: Don't initialize ICU replacement character for UTF-32 encodings (Closed)
Patch Set: Don't use zero-length array initializer, to keep MSVC happy Created 4 years, 1 month 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 return a.name() == b.name(); 71 return a.name() == b.name();
72 } 72 }
73 inline bool operator!=(const TextEncoding& a, const TextEncoding& b) { 73 inline bool operator!=(const TextEncoding& a, const TextEncoding& b) {
74 return a.name() != b.name(); 74 return a.name() != b.name();
75 } 75 }
76 76
77 WTF_EXPORT const TextEncoding& ASCIIEncoding(); 77 WTF_EXPORT const TextEncoding& ASCIIEncoding();
78 WTF_EXPORT const TextEncoding& Latin1Encoding(); 78 WTF_EXPORT const TextEncoding& Latin1Encoding();
79 WTF_EXPORT const TextEncoding& UTF16BigEndianEncoding(); 79 WTF_EXPORT const TextEncoding& UTF16BigEndianEncoding();
80 WTF_EXPORT const TextEncoding& UTF16LittleEndianEncoding(); 80 WTF_EXPORT const TextEncoding& UTF16LittleEndianEncoding();
81 WTF_EXPORT const TextEncoding& UTF32Encoding();
81 WTF_EXPORT const TextEncoding& UTF32BigEndianEncoding(); 82 WTF_EXPORT const TextEncoding& UTF32BigEndianEncoding();
82 WTF_EXPORT const TextEncoding& UTF32LittleEndianEncoding(); 83 WTF_EXPORT const TextEncoding& UTF32LittleEndianEncoding();
83 WTF_EXPORT const TextEncoding& UTF8Encoding(); 84 WTF_EXPORT const TextEncoding& UTF8Encoding();
84 WTF_EXPORT const TextEncoding& WindowsLatin1Encoding(); 85 WTF_EXPORT const TextEncoding& WindowsLatin1Encoding();
85 86
86 } // namespace WTF 87 } // namespace WTF
87 88
88 using WTF::ASCIIEncoding; 89 using WTF::ASCIIEncoding;
89 using WTF::Latin1Encoding; 90 using WTF::Latin1Encoding;
90 using WTF::UTF16BigEndianEncoding; 91 using WTF::UTF16BigEndianEncoding;
91 using WTF::UTF16LittleEndianEncoding; 92 using WTF::UTF16LittleEndianEncoding;
93 using WTF::UTF32Encoding;
92 using WTF::UTF32BigEndianEncoding; 94 using WTF::UTF32BigEndianEncoding;
93 using WTF::UTF32LittleEndianEncoding; 95 using WTF::UTF32LittleEndianEncoding;
94 using WTF::UTF8Encoding; 96 using WTF::UTF8Encoding;
95 using WTF::WindowsLatin1Encoding; 97 using WTF::WindowsLatin1Encoding;
96 98
97 #endif // TextEncoding_h 99 #endif // TextEncoding_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/text/TextCodecICUTest.cpp ('k') | third_party/WebKit/Source/wtf/text/TextEncoding.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698