commit | a632e51e5e3d11970bdedad397d029d2b3e957d1 | [log] [tgz] |
---|---|---|
author | Arjan Speiard | Asgard Sings! <arjan.spieard@gmail.com> | Fri May 20 19:11:25 2022 +0200 |
committer | Arjan Speiard | Asgard Sings! <arjan.spieard@gmail.com> | Fri May 20 19:28:20 2022 +0200 |
tree | 9d3522b9806b88a13ca48489e0f19760676c072d | |
parent | 96e566d20615c4fc9457cb62c503b3a6be16515c [diff] |
Fixed int to char conversion warning for object initialization
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);
You need CMake to build the package. After unzipping the source code , run autogen.sh
to build everything automatically. The script also downloads Google Test 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 .