| OLD | NEW |
| 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 * Copyright (C) 2006 Alexey Proskuryakov <ap@nypop.com> | 3 * Copyright (C) 2006 Alexey Proskuryakov <ap@nypop.com> |
| 4 * Copyright (C) 2007-2009 Torch Mobile, Inc. | 4 * Copyright (C) 2007-2009 Torch Mobile, Inc. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #include "config.h" | 28 #include "config.h" |
| 29 #include "wtf/text/TextEncoding.h" | 29 #include "wtf/text/TextEncoding.h" |
| 30 | 30 |
| 31 #include "wtf/text/TextCodec.h" | 31 #include "wtf/text/TextCodec.h" |
| 32 #include "wtf/text/TextEncodingRegistry.h" | 32 #include "wtf/text/TextEncodingRegistry.h" |
| 33 #include <unicode/unorm.h> | 33 #include <unicode/unorm.h> |
| 34 #include <wtf/OwnPtr.h> | 34 #include "wtf/OwnPtr.h" |
| 35 #include <wtf/StdLibExtras.h> | 35 #include "wtf/StdLibExtras.h" |
| 36 #include <wtf/text/CString.h> | 36 #include "wtf/text/CString.h" |
| 37 #include <wtf/text/WTFString.h> | 37 #include "wtf/text/WTFString.h" |
| 38 | 38 |
| 39 namespace WTF { | 39 namespace WTF { |
| 40 | 40 |
| 41 static const TextEncoding& UTF7Encoding() | 41 static const TextEncoding& UTF7Encoding() |
| 42 { | 42 { |
| 43 static TextEncoding globalUTF7Encoding("UTF-7"); | 43 static TextEncoding globalUTF7Encoding("UTF-7"); |
| 44 return globalUTF7Encoding; | 44 return globalUTF7Encoding; |
| 45 } | 45 } |
| 46 | 46 |
| 47 TextEncoding::TextEncoding(const char* name) | 47 TextEncoding::TextEncoding(const char* name) |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 return globalUTF8Encoding; | 219 return globalUTF8Encoding; |
| 220 } | 220 } |
| 221 | 221 |
| 222 const TextEncoding& WindowsLatin1Encoding() | 222 const TextEncoding& WindowsLatin1Encoding() |
| 223 { | 223 { |
| 224 static TextEncoding globalWindowsLatin1Encoding("WinLatin1"); | 224 static TextEncoding globalWindowsLatin1Encoding("WinLatin1"); |
| 225 return globalWindowsLatin1Encoding; | 225 return globalWindowsLatin1Encoding; |
| 226 } | 226 } |
| 227 | 227 |
| 228 } // namespace WTF | 228 } // namespace WTF |
| OLD | NEW |