mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 12:49:35 +08:00
Remove strngs.h from public API
Signed-off-by: Stefan Weil <sw@weil.de>
This commit is contained in:
parent
03884c370c
commit
90af3e7b5c
@ -722,7 +722,6 @@ install(FILES
|
||||
include/tesseract/ocrclass.h
|
||||
include/tesseract/platform.h
|
||||
include/tesseract/serialis.h
|
||||
include/tesseract/strngs.h
|
||||
include/tesseract/unichar.h
|
||||
|
||||
#${CMAKE_CURRENT_BINARY_DIR}/src/endianness.h
|
||||
|
@ -59,7 +59,6 @@ pkginclude_HEADERS += include/tesseract/publictypes.h
|
||||
pkginclude_HEADERS += include/tesseract/renderer.h
|
||||
pkginclude_HEADERS += include/tesseract/resultiterator.h
|
||||
pkginclude_HEADERS += include/tesseract/serialis.h
|
||||
pkginclude_HEADERS += include/tesseract/strngs.h
|
||||
pkginclude_HEADERS += include/tesseract/thresholder.h
|
||||
pkginclude_HEADERS += include/tesseract/unichar.h
|
||||
|
||||
@ -335,6 +334,7 @@ noinst_HEADERS += src/ccutil/params.h
|
||||
noinst_HEADERS += src/ccutil/qrsequence.h
|
||||
noinst_HEADERS += src/ccutil/sorthelper.h
|
||||
noinst_HEADERS += src/ccutil/scanutils.h
|
||||
noinst_HEADERS += src/ccutil/strngs.h
|
||||
noinst_HEADERS += src/ccutil/tessdatamanager.h
|
||||
noinst_HEADERS += src/ccutil/tprintf.h
|
||||
noinst_HEADERS += src/ccutil/unicharcompress.h
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
#include <tesseract/baseapi.h>
|
||||
#include <tesseract/renderer.h>
|
||||
#include <tesseract/strngs.h> // for STRING
|
||||
#include "strngs.h" // for STRING
|
||||
|
||||
#include <memory>
|
||||
#include <sstream> // for std::stringstream
|
||||
|
@ -62,7 +62,7 @@
|
||||
#include <tesseract/baseapi.h>
|
||||
#include <tesseract/renderer.h> // for TessResultRenderer
|
||||
#include <tesseract/resultiterator.h> // for ResultIterator
|
||||
#include <tesseract/strngs.h> // for STRING
|
||||
#include "strngs.h" // for STRING
|
||||
#include <tesseract/thresholder.h> // for ImageThresholder
|
||||
#include <tesseract/helpers.h> // for IntCastRounded, chomp_string
|
||||
#include <tesseract/ocrclass.h> // for ETEXT_DESC
|
||||
|
@ -36,7 +36,7 @@
|
||||
#include "werd.h" // for WERD, W_EOL, W_FUZZY_NON, W_FUZZY_SP
|
||||
|
||||
#include <tesseract/ocrclass.h> // for ETEXT_DESC
|
||||
#include <tesseract/strngs.h> // for STRING
|
||||
#include "strngs.h" // for STRING
|
||||
#include <tesseract/unichar.h> // for UNICHAR_ID
|
||||
|
||||
#include <cstdint> // for INT16_MAX, int16_t, int32_t
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
#include "allheaders.h"
|
||||
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
|
||||
namespace tesseract {
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
||||
#include "tesseractclass.h"
|
||||
#include "textord.h"
|
||||
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath> // for std::fabs
|
||||
|
@ -40,7 +40,7 @@
|
||||
#include "ratngs.h" // for WERD_CHOICE
|
||||
#include "rect.h" // for TBOX
|
||||
#include "statistc.h" // for STATS
|
||||
#include <tesseract/strngs.h> // for STRING
|
||||
#include "strngs.h" // for STRING
|
||||
#include "tprintf.h" // for tprintf
|
||||
#include <tesseract/unichar.h> // for UNICHAR, UNICHAR_ID
|
||||
#include "unicharset.h" // for UNICHARSET
|
||||
|
@ -21,7 +21,7 @@
|
||||
#define TESSERACT_CCMAIN_PARAGRAPHS_H_
|
||||
|
||||
#include "rect.h" // for TBOX
|
||||
#include <tesseract/strngs.h> // for STRING
|
||||
#include "strngs.h" // for STRING
|
||||
#include <list>
|
||||
|
||||
namespace tesseract {
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#include "elst.h" // for ELIST_ITERATOR, ELISTIZEH, ELIST_LINK
|
||||
#include "scrollview.h" // for ScrollView (ptr only), SVEvent (ptr only)
|
||||
#include <tesseract/strngs.h> // for STRING
|
||||
#include "strngs.h" // for STRING
|
||||
|
||||
namespace tesseract {
|
||||
|
||||
|
@ -45,7 +45,7 @@
|
||||
|
||||
#include "genericvector.h" // for GenericVector, PointerVector
|
||||
#include <tesseract/publictypes.h> // for OcrEngineMode, PageSegMode, OEM_L...
|
||||
#include <tesseract/strngs.h> // for STRING
|
||||
#include "strngs.h" // for STRING
|
||||
#include <tesseract/unichar.h> // for UNICHAR_ID
|
||||
|
||||
#include "allheaders.h" // for pixDestroy, pixGetWidth, pixGetHe...
|
||||
|
@ -33,7 +33,7 @@
|
||||
|
||||
#include "genericvector.h" // for GenericVector
|
||||
#include <tesseract/unichar.h> // for UNICHAR_ID
|
||||
#include <tesseract/strngs.h> // for STRING
|
||||
#include "strngs.h" // for STRING
|
||||
|
||||
#include <cstdint> // for int16_t
|
||||
#include <cstring> // for memcpy
|
||||
|
@ -20,7 +20,7 @@
|
||||
#ifndef BLREAD_H
|
||||
#define BLREAD_H
|
||||
|
||||
#include <tesseract/strngs.h> // for STRING
|
||||
#include "strngs.h" // for STRING
|
||||
|
||||
#include <cstdint> // for int32_t
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include "tprintf.h" // for tprintf
|
||||
|
||||
#include <tesseract/helpers.h> // for chomp_string
|
||||
#include <tesseract/strngs.h> // for STRING
|
||||
#include "strngs.h" // for STRING
|
||||
#include <tesseract/unichar.h> // for UNICHAR
|
||||
|
||||
#include <cstring> // for strchr, strcmp
|
||||
|
@ -19,7 +19,7 @@
|
||||
#ifndef TESSERACT_CCUTIL_BOXREAD_H_
|
||||
#define TESSERACT_CCUTIL_BOXREAD_H_
|
||||
|
||||
#include <tesseract/strngs.h> // for STRING
|
||||
#include "strngs.h" // for STRING
|
||||
|
||||
#include <cstdio> // for FILE
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
#include "points.h" // for FCOORD
|
||||
|
||||
#include "genericvector.h" // for GenericVector, PointerVector, FileReader
|
||||
#include <tesseract/strngs.h> // for STRING
|
||||
#include "strngs.h" // for STRING
|
||||
|
||||
#include <mutex> // for std::mutex
|
||||
#include <thread> // for std::thread
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include "elst.h"
|
||||
|
||||
#include <tesseract/publictypes.h>
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
|
||||
namespace tesseract {
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include "werd.h" // for WERD, W_BOL, W_EOL
|
||||
|
||||
#include "genericvector.h" // for GenericVector, PointerVector (ptr only)
|
||||
#include <tesseract/strngs.h> // for STRING
|
||||
#include "strngs.h" // for STRING
|
||||
#include <tesseract/unichar.h> // for UNICHAR_ID, INVALID_UNICHAR_ID
|
||||
|
||||
#include <cstdint> // for int32_t, int16_t
|
||||
|
@ -21,7 +21,7 @@
|
||||
#define TESSERACT_WORDREC_PARAMS_TRAINING_FEATDEF_H_
|
||||
|
||||
#include "genericvector.h"
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
|
||||
namespace tesseract {
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
#include "clst.h"
|
||||
#include "polyblk.h"
|
||||
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
|
||||
struct Pix;
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
#include "rect.h"
|
||||
|
||||
#include <tesseract/strngs.h> // for STRING
|
||||
#include "strngs.h" // for STRING
|
||||
|
||||
namespace tesseract {
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include "params.h"
|
||||
#include "stepblob.h"
|
||||
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
|
||||
namespace tesseract {
|
||||
|
||||
|
@ -35,7 +35,7 @@
|
||||
#ifdef _WIN32
|
||||
#include "host.h" // windows.h for HANDLE, ...
|
||||
#endif
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
#include "params.h"
|
||||
#include "unicharset.h"
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
#define PARAMS_H
|
||||
|
||||
#include "genericvector.h"
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
**********************************************************************/
|
||||
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
|
||||
#include "errcode.h" // for ASSERT_HOST
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
#ifndef STRNGS_H
|
||||
#define STRNGS_H
|
||||
|
||||
#include "platform.h" // for TESS_API
|
||||
#include <tesseract/platform.h> // for TESS_API
|
||||
|
||||
#include <cassert> // for assert
|
||||
#include <cstdint> // for uint32_t
|
@ -33,7 +33,7 @@
|
||||
#include "errcode.h"
|
||||
#include <tesseract/helpers.h>
|
||||
#include <tesseract/serialis.h>
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
#include <tesseract/version.h>
|
||||
#include "tprintf.h"
|
||||
#include "params.h"
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
#include <string>
|
||||
#include "genericvector.h"
|
||||
#include <tesseract/strngs.h> // for STRING
|
||||
#include "strngs.h" // for STRING
|
||||
|
||||
static const char kTrainedDataSuffix[] = "traineddata";
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#include "params.h"
|
||||
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstdarg>
|
||||
|
@ -25,7 +25,7 @@
|
||||
#include <unordered_map>
|
||||
|
||||
#include <tesseract/serialis.h>
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
#include "unicharset.h"
|
||||
|
||||
namespace tesseract {
|
||||
|
@ -25,7 +25,7 @@
|
||||
#include "genericvector.h"
|
||||
#include <tesseract/helpers.h>
|
||||
#include <tesseract/serialis.h>
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
#include <tesseract/unichar.h>
|
||||
|
||||
#include <functional> // for std::function
|
||||
|
@ -62,7 +62,7 @@
|
||||
#include "genericvector.h" // for GenericVector
|
||||
#include <tesseract/helpers.h> // for IntCastRounded, ClipToRange
|
||||
#include <tesseract/serialis.h> // for TFile
|
||||
#include <tesseract/strngs.h> // for STRING
|
||||
#include "strngs.h" // for STRING
|
||||
#include <tesseract/unichar.h> // for UNICHAR_ID, INVALID_UNICHAR_ID
|
||||
|
||||
#include <algorithm> // for max, min
|
||||
|
@ -21,7 +21,7 @@
|
||||
/**----------------------------------------------------------------------------
|
||||
Include Files and Type Defines
|
||||
----------------------------------------------------------------------------**/
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
|
||||
/**----------------------------------------------------------------------------
|
||||
Public Function Prototypes
|
||||
|
@ -20,7 +20,7 @@
|
||||
#include "emalloc.h"
|
||||
#include "scanutils.h"
|
||||
|
||||
#include <tesseract/strngs.h> // for STRING
|
||||
#include "strngs.h" // for STRING
|
||||
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
|
@ -25,7 +25,7 @@
|
||||
#include "bitvector.h"
|
||||
#include "fontinfo.h"
|
||||
#include "intfeaturespace.h"
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
#include "unicharset.h"
|
||||
#include "unicity_table.h"
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
#include "dict.h"
|
||||
#include <tesseract/helpers.h>
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
#include "tprintf.h"
|
||||
|
||||
#include <memory>
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include "dawg.h"
|
||||
#include "object_cache.h"
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
#include "tessdatamanager.h"
|
||||
|
||||
namespace tesseract {
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
#include "dawg.h"
|
||||
#include "object_cache.h"
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
#include "tessdatamanager.h"
|
||||
|
||||
namespace tesseract {
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include "params.h"
|
||||
#include "recodebeam.h"
|
||||
#include "series.h"
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
#include "unicharcompress.h"
|
||||
|
||||
class BLOB_CHOICE_IT;
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include "tprintf.h"
|
||||
|
||||
#include <tesseract/serialis.h>
|
||||
#include <tesseract/strngs.h> // for STRING
|
||||
#include "strngs.h" // for STRING
|
||||
#include "genericvector.h"
|
||||
#include <tesseract/helpers.h>
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
#include "blobbox.h"
|
||||
#include "tabvector.h"
|
||||
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
|
||||
namespace tesseract {
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
#include "rect.h"
|
||||
|
||||
#include "genericvector.h"
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
|
||||
struct Pix;
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
#include "commontraining.h"
|
||||
#include "mastertrainer.h"
|
||||
#include "params.h"
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
#include "tessclassifier.h"
|
||||
#include "tesseractclass.h"
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
#include "genericvector.h" // for GenericVector
|
||||
#include <tesseract/platform.h>
|
||||
#include <tesseract/strngs.h> // for STRING
|
||||
#include "strngs.h" // for STRING
|
||||
|
||||
namespace tesseract {
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include <string>
|
||||
#include "genericvector.h"
|
||||
#include <tesseract/serialis.h>
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
#include "tessdatamanager.h"
|
||||
#include "unicharset.h"
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include "commontraining.h"
|
||||
#include "genericvector.h"
|
||||
#include "lstmtester.h"
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
#include "tprintf.h"
|
||||
|
||||
using namespace tesseract;
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include <mutex>
|
||||
#include "genericvector.h"
|
||||
#include "lstmtrainer.h"
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
|
||||
namespace tesseract {
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include "lstmtester.h"
|
||||
#include "lstmtrainer.h"
|
||||
#include "params.h"
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
#include "tprintf.h"
|
||||
#include "unicharset_training_utils.h"
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include "commontraining.h"
|
||||
#include "mastertrainer.h"
|
||||
#include "params.h"
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
|
||||
using namespace tesseract;
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include "genericvector.h"
|
||||
#include "lang_model_helpers.h"
|
||||
#include "normstrngs.h"
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
#include "unicharset.h"
|
||||
#include "unicharset_training_utils.h"
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
#ifndef TESSERACT_VIEWER_SVMNODE_H_
|
||||
#define TESSERACT_VIEWER_SVMNODE_H_
|
||||
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
|
||||
namespace tesseract {
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include "ratngs.h" // for BLOB_CHOICE (ptr only), BLOB_CHOICE_LIST...
|
||||
#include "stopper.h" // for DANGERR
|
||||
|
||||
#include <tesseract/strngs.h> // for STRING
|
||||
#include "strngs.h" // for STRING
|
||||
|
||||
#include <cmath> // for exp
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
#include "lm_consistency.h" // for LMConsistencyInfo
|
||||
#include "ratngs.h" // for BLOB_CHOICE, PermuterType
|
||||
#include "stopper.h" // for DANGERR
|
||||
#include <tesseract/strngs.h> // for STRING
|
||||
#include "strngs.h" // for STRING
|
||||
#include <tesseract/unichar.h> // for UNICHAR_ID
|
||||
#include "unicharset.h" // for UNICHARSET
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
#include "genericvector.h" // for GenericVector
|
||||
#include "params_training_featdef.h" // for PTRAIN_NUM_FEATURE_TYPES
|
||||
#include <tesseract/strngs.h> // for STRING
|
||||
#include "strngs.h" // for STRING
|
||||
|
||||
namespace tesseract {
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include "pageres.h" // for WERD_RES
|
||||
#include "params.h" // for BoolParam, IntParam, DoubleParam
|
||||
#include "ratngs.h" // for BLOB_CHOICE_LIST, BLOB_CHOICE_IT
|
||||
#include <tesseract/strngs.h> // for STRING
|
||||
#include "strngs.h" // for STRING
|
||||
#include "tprintf.h" // for tprintf
|
||||
#include "wordrec.h" // for Wordrec, SegSearchPending (ptr only)
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include "include_gunit.h"
|
||||
#include "normstrngs.h"
|
||||
#include "normstrngs_test.h"
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
#include <tesseract/unichar.h>
|
||||
#ifdef INCLUDE_TENSORFLOW
|
||||
#include "util/utf8/unilib.h" // for UniLib
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include "genericvector.h"
|
||||
#include "include_gunit.h"
|
||||
#include "stringrenderer.h"
|
||||
#include <tesseract/strngs.h>
|
||||
#include "strngs.h"
|
||||
|
||||
BOOL_PARAM_FLAG(display, false, "Display image for inspection");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user