commit | ec1d3d36f9427052d333c927a676159df28a154d | [log] [tgz] |
---|---|---|
author | Jans George Rautenbach <14095706+Koellewe@users.noreply.github.com> | Wed Dec 01 10:13:23 2021 +0200 |
committer | GitHub <noreply@github.com> | Wed Dec 01 10:13:23 2021 +0200 |
tree | cfbbc19f860a9d082b3eeb8453926ab826926a5a | |
parent | 37529e628fbac2e4c0d4d8520be9db789f316c9e [diff] |
Updated autogen.sh with new googletest references
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 .