Remove strngs.h from public API

Signed-off-by: Stefan Weil <sw@weil.de>
This commit is contained in:
Stefan Weil 2020-12-27 23:51:42 +01:00
parent 03884c370c
commit 90af3e7b5c
57 changed files with 56 additions and 57 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -24,7 +24,7 @@
#include "allheaders.h"
#include <tesseract/strngs.h>
#include "strngs.h"
namespace tesseract {

View File

@ -32,7 +32,7 @@
#include "tesseractclass.h"
#include "textord.h"
#include <tesseract/strngs.h>
#include "strngs.h"
#include <algorithm>
#include <cmath> // for std::fabs

View File

@ -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

View File

@ -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 {

View File

@ -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 {

View File

@ -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...

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View 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

View File

@ -23,7 +23,7 @@
#include "elst.h"
#include <tesseract/publictypes.h>
#include <tesseract/strngs.h>
#include "strngs.h"
namespace tesseract {

View File

@ -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

View File

@ -21,7 +21,7 @@
#define TESSERACT_WORDREC_PARAMS_TRAINING_FEATDEF_H_
#include "genericvector.h"
#include <tesseract/strngs.h>
#include "strngs.h"
namespace tesseract {

View File

@ -22,7 +22,7 @@
#include "clst.h"
#include "polyblk.h"
#include <tesseract/strngs.h>
#include "strngs.h"
struct Pix;

View File

@ -23,7 +23,7 @@
#include "rect.h"
#include <tesseract/strngs.h> // for STRING
#include "strngs.h" // for STRING
namespace tesseract {

View File

@ -24,7 +24,7 @@
#include "params.h"
#include "stepblob.h"
#include <tesseract/strngs.h>
#include "strngs.h"
namespace tesseract {

View File

@ -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"

View File

@ -20,7 +20,7 @@
#define PARAMS_H
#include "genericvector.h"
#include <tesseract/strngs.h>
#include "strngs.h"
#include <cstdio>

View File

@ -16,7 +16,7 @@
*
**********************************************************************/
#include <tesseract/strngs.h>
#include "strngs.h"
#include "errcode.h" // for ASSERT_HOST

View File

@ -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

View File

@ -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"

View File

@ -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";

View File

@ -25,7 +25,7 @@
#include "params.h"
#include <tesseract/strngs.h>
#include "strngs.h"
#include <cstdio>
#include <cstdarg>

View File

@ -25,7 +25,7 @@
#include <unordered_map>
#include <tesseract/serialis.h>
#include <tesseract/strngs.h>
#include "strngs.h"
#include "unicharset.h"
namespace tesseract {

View File

@ -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

View File

@ -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

View File

@ -21,7 +21,7 @@
/**----------------------------------------------------------------------------
Include Files and Type Defines
----------------------------------------------------------------------------**/
#include <tesseract/strngs.h>
#include "strngs.h"
/**----------------------------------------------------------------------------
Public Function Prototypes

View File

@ -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>

View File

@ -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"

View File

@ -24,7 +24,7 @@
#include "dict.h"
#include <tesseract/helpers.h>
#include <tesseract/strngs.h>
#include "strngs.h"
#include "tprintf.h"
#include <memory>

View File

@ -20,7 +20,7 @@
#include "dawg.h"
#include "object_cache.h"
#include <tesseract/strngs.h>
#include "strngs.h"
#include "tessdatamanager.h"
namespace tesseract {

View File

@ -22,7 +22,7 @@
#include "dawg.h"
#include "object_cache.h"
#include <tesseract/strngs.h>
#include "strngs.h"
#include "tessdatamanager.h"
namespace tesseract {

View File

@ -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;

View File

@ -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>

View File

@ -25,7 +25,7 @@
#include "blobbox.h"
#include "tabvector.h"
#include <tesseract/strngs.h>
#include "strngs.h"
namespace tesseract {

View File

@ -25,7 +25,7 @@
#include "rect.h"
#include "genericvector.h"
#include <tesseract/strngs.h>
#include "strngs.h"
struct Pix;

View File

@ -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"

View File

@ -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 {

View File

@ -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"

View File

@ -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;

View File

@ -21,7 +21,7 @@
#include <mutex>
#include "genericvector.h"
#include "lstmtrainer.h"
#include <tesseract/strngs.h>
#include "strngs.h"
namespace tesseract {

View File

@ -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"

View File

@ -26,7 +26,7 @@
#include "commontraining.h"
#include "mastertrainer.h"
#include "params.h"
#include <tesseract/strngs.h>
#include "strngs.h"
using namespace tesseract;

View File

@ -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"

View File

@ -27,7 +27,7 @@
#ifndef TESSERACT_VIEWER_SVMNODE_H_
#define TESSERACT_VIEWER_SVMNODE_H_
#include <tesseract/strngs.h>
#include "strngs.h"
namespace tesseract {

View File

@ -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

View File

@ -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

View File

@ -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 {

View File

@ -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)

View File

@ -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

View File

@ -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");