Changeset 69917 in webkit
- Timestamp:
- Oct 16, 2010 2:04:30 PM (13 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r69916 r69917 1 2010-10-16 Kwang Yul Seo <skyul@company100.net> 2 3 Reviewed by Kent Tamura. 4 5 [BREWMP] Port TextCodec 6 https://bugs.webkit.org/show_bug.cgi?id=45797 7 8 Implement TextCodec with Brew MP's ICharsetConv. 9 Only UTF-8 is supported for now. 10 11 * platform/text/TextEncoding.cpp: 12 (WebCore::TextEncoding::encode): 13 * platform/text/TextEncodingRegistry.cpp: 14 (WebCore::buildBaseTextCodecMaps): 15 * platform/text/brew/TextCodecBrew.cpp: Added. 16 (WebCore::newTextCodecBrew): 17 (WebCore::TextCodecBrew::registerBaseEncodingNames): 18 (WebCore::TextCodecBrew::registerBaseCodecs): 19 (WebCore::TextCodecBrew::registerExtendedEncodingNames): 20 (WebCore::TextCodecBrew::registerExtendedCodecs): 21 (WebCore::TextCodecBrew::TextCodecBrew): 22 (WebCore::TextCodecBrew::~TextCodecBrew): 23 (WebCore::TextCodecBrew::decode): 24 (WebCore::TextCodecBrew::encode): 25 * platform/text/brew/TextCodecBrew.h: Added. 26 1 27 2010-10-16 Patrick Gansterer <paroga@webkit.org> 2 28 -
trunk/WebCore/platform/text/TextEncoding.cpp
r64817 r69917 134 134 OwnPtr<TextCodec> textCodec = newTextCodec(*this); 135 135 return textCodec.get() ? textCodec->encode(characters, length, handling) : CString(); 136 #elif USE(BREWMP_UNICODE) 137 // FIXME: not sure if Brew MP normalizes the input string automatically 138 OwnPtr<TextCodec> textCodec = newTextCodec(*this); 139 return textCodec.get() ? textCodec->encode(characters, length, handling) : CString(); 136 140 #endif 137 141 } -
trunk/WebCore/platform/text/TextEncodingRegistry.cpp
r64817 r69917 32 32 #include "TextCodecUserDefined.h" 33 33 #include "TextCodecUTF16.h" 34 #include "TextEncoding.h" 34 35 #include <wtf/ASCIICType.h> 35 36 #include <wtf/Assertions.h> … … 51 52 #if USE(GLIB_UNICODE) 52 53 #include "gtk/TextCodecGtk.h" 54 #endif 55 #if USE(BREWMP_UNICODE) 56 #include "brew/TextCodecBrew.h" 53 57 #endif 54 58 #if OS(WINCE) && !PLATFORM(QT) … … 236 240 #endif 237 241 242 #if USE(BREWMP_UNICODE) 243 TextCodecBrew::registerBaseEncodingNames(addToTextEncodingNameMap); 244 TextCodecBrew::registerBaseCodecs(addToTextCodecMap); 245 #endif 246 238 247 #if OS(WINCE) && !PLATFORM(QT) 239 248 TextCodecWinCE::registerBaseEncodingNames(addToTextEncodingNameMap);
Note: See TracChangeset
for help on using the changeset viewer.