diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:15 -0800 |
commit | 1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch) | |
tree | 4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebCore/platform/text/TextDecoder.h | |
parent | 9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff) | |
download | external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2 |
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebCore/platform/text/TextDecoder.h')
-rw-r--r-- | WebCore/platform/text/TextDecoder.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/WebCore/platform/text/TextDecoder.h b/WebCore/platform/text/TextDecoder.h index 3892032..171cb59 100644 --- a/WebCore/platform/text/TextDecoder.h +++ b/WebCore/platform/text/TextDecoder.h @@ -41,15 +41,15 @@ namespace WebCore { void reset(const TextEncoding&); const TextEncoding& encoding() const { return m_encoding; }; - String decode(const char* data, size_t length, bool flush = false) + String decode(const char* data, size_t length, bool flush, bool stopOnError, bool& sawError) { if (!m_checkedForBOM) - return checkForBOM(data, length, flush); - return m_codec->decode(data, length, flush); + return checkForBOM(data, length, flush, stopOnError, sawError); + return m_codec->decode(data, length, flush, stopOnError, sawError); } private: - String checkForBOM(const char*, size_t length, bool flush); + String checkForBOM(const char*, size_t length, bool flush, bool stopOnError, bool& sawError); TextEncoding m_encoding; OwnPtr<TextCodec> m_codec; |