# chromium_third_party_ced **Repository Path**: openharmony-tpc/chromium_third_party_ced ## Basic Information - **Project Name**: chromium_third_party_ced - **Description**: 第三方软件ced - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://gitee.com/openharmony-sig/chromium_third_party_ced - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 5 - **Created**: 2023-08-11 - **Last Updated**: 2025-04-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 🚨 **重要提示 | IMPORTANT** > > **⚠️ 此代码仓已归档。新地址请访问 [chromium_third_party_ced](https://gitcode.com/openharmony-tpc/chromium_third_party_ced)。| ⚠️ This repository has been archived. For the new address, please visit [chromium_third_party_ced](https://gitcode.com/openharmony-tpc/chromium_third_party_ced).** > --- > ### Introduction Compact Encoding Detection(CED for short) is a library written in C++ that scans given raw bytes and detect the most likely text encoding. Basic usage: ``` #include "compact_enc_det/compact_enc_det.h" const char* text = "Input text"; bool is_reliable; int bytes_consumed; Encoding encoding = CompactEncDet::DetectEncoding( text, strlen(text), nullptr, nullptr, nullptr, UNKNOWN_ENCODING, UNKNOWN_LANGUAGE, CompactEncDet::WEB_CORPUS, false, &bytes_consumed, &is_reliable); ``` ### How to build You need [CMake](https://cmake.org/) to build the package. After unzipping the source code , run `autogen.sh` to build everything automatically. The script also downloads [Google Test](https://github.com/google/googletest) framework needed to build the unittest. ``` $ cd compact_enc_det $ ./autogen.sh ... $ bin/ced_unittest ``` On Windows, run `cmake .` to download the test framework, and generate project files for Visual Studio. ``` D:\packages\compact_enc_det> cmake . ```