The main Chromium project is located at https://www.chromium.org/.
The source code is available at https://chromium.googlesource.com/.
Instructions for contributing can be found at https://www.chromium.org/developers.
This project forked from chromium/-archived-chromium
Open-source project behind Google Chrome
Home Page: https://www.chromium.org/
The main Chromium project is located at https://www.chromium.org/.
The source code is available at https://chromium.googlesource.com/.
Instructions for contributing can be found at https://www.chromium.org/developers.
数据成员:
kDefaultEncoding,
kAutoDetectedEncoding,
kEncodingFromContentSniffing,
kEncodingFromXMLHeader,
kEncodingFromMetaTag,
kEncodingFromCSSCharset,
kEncodingFromHTTPHeader,
kEncodingFromParentFrame
Create 默认编码
CreateWithAutoDetection 创建TextResourceDecoder实例,使用自动检测
CreateAlwaysUseUTF8ForText 创建TextResourceDecoder实例,使用UTF8
SetEncoding 设置encoding_
Encoding 返回encoding_
bool EncodingWasDetectedHeuristically 是否通过嗅探检测编码
Decode
Flush
处理文档已经完全loaded,还确定不了编码的情况
在使用自动检测编码时,根据文本的编码确定encoding_
SetHintEncoding
UseLenientXMLDecoding 设置use_lenient_xml_decoding_ 宽容的xml解码
SawError 是否有错误
CheckForBOM
[E] EncodingDetectionOption
TextResourceDecoder
[E] ContentType
DetermineContentType
DefaultEncoding 默认编码
CheckForCSSCharset
CheckForXMLCharset
CheckForMetaCharset
ShouldAutoDetect
ContentType content_type_;
WTF::TextEncoding encoding_; 编码
std::unique_ptr codec_;
EncodingSource source_;
const char* hint_encoding_;
const KURL hint_url_;
Vector buffer_;
char hint_language_[3];
bool checked_for_bom_;
bool checked_for_css_charset_;
bool checked_for_xml_charset_;
bool checked_for_meta_charset_;
bool use_lenient_xml_decoding_; // Don't stop on XML decoding errors.
bool saw_error_;
EncodingDetectionOption encoding_detection_option_;
std::unique_ptr charset_parser_;
成员方法:
成员变量:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.