Replace string.h by standard C++ cstring

Remove the unneeded include statement in platform.h.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2018-06-21 20:32:51 +02:00
parent 57918c1072
commit 1371980f9f
24 changed files with 39 additions and 41 deletions

View File

@ -36,7 +36,7 @@
#else
#include <dirent.h>
#include <libgen.h>
#include <string.h>
#include <cstring>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

View File

@ -19,7 +19,7 @@
#include "config_auto.h"
#endif
#include <string.h>
#include <cstring>
#include <memory> // std::unique_ptr
#include "baseapi.h"
#include "genericvector.h"

View File

@ -19,7 +19,7 @@
**********************************************************************/
#include <ctype.h>
#include <string.h>
#include <cstring>
#include "tessbox.h"
#include "tessvars.h"
#include "memry.h"

View File

@ -19,7 +19,7 @@
#include <ctype.h>
#include <errno.h>
#include <string.h>
#include <cstring>
#include "allheaders.h"
#include "boxread.h"
#include "chopper.h"

View File

@ -24,7 +24,7 @@
#endif
#include <algorithm>
#include <string.h>
#include <cstring>
#include <cmath>
#ifdef __UNIX__
#include <unistd.h>

View File

@ -18,7 +18,7 @@
**********************************************************************/
#include <algorithm>
#include <string.h>
#include <cstring>
#include <ctype.h>
#include "params.h"
#include "float2int.h"

View File

@ -19,7 +19,7 @@
#include <ctype.h>
#include <errno.h>
#include <string.h>
#include <cstring>
#ifdef __UNIX__
#include <unistd.h>
#endif

View File

@ -21,7 +21,7 @@
#include "scanutils.h"
#include <ctype.h>
#include <errno.h>
#include <string.h>
#include <cstring>
#include "genericvector.h"
#include "reject.h"
#include "control.h"

View File

@ -21,7 +21,7 @@
#include "thresholder.h"
#include <string.h>
#include <cstring>
#include "otsuthr.h"

View File

@ -18,7 +18,7 @@
**********************************************************************/
#include "boxread.h"
#include <string.h>
#include <cstring>
#include "fileerr.h"
#include "rect.h"

View File

@ -18,7 +18,7 @@
**********************************************************************/
#include <algorithm>
#include <string.h>
#include <cstring>
#include "coutln.h"

View File

@ -19,7 +19,7 @@
#include "otsuthr.h"
#include <string.h>
#include <cstring>
#include "allheaders.h"
#include "helpers.h"
#include "openclwrapper.h"

View File

@ -17,7 +17,7 @@
//
///////////////////////////////////////////////////////////////////////
#include <string.h>
#include <cstring>
#include "params_training_featdef.h"

View File

@ -23,7 +23,7 @@
#endif
#include "statistc.h"
#include <string.h>
#include <cstring>
#include <math.h>
#include <stdlib.h>
#include "errcode.h"

View File

@ -20,7 +20,7 @@
///////////////////////////////////////////////////////////////////////
#include "bitvector.h"
#include <string.h>
#include <cstring>
#include "helpers.h"
#include <algorithm>

View File

@ -20,7 +20,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <cstring>
#ifdef __UNIX__
#include <signal.h>
#endif

View File

@ -18,7 +18,7 @@
**********************************************************************/
#include <stdio.h>
#include <string.h>
#include <cstring>
#include <stdlib.h>
#include "genericvector.h"

View File

@ -20,8 +20,6 @@
#ifndef TESSERACT_CCUTIL_PLATFORM_H_
#define TESSERACT_CCUTIL_PLATFORM_H_
#include <string.h>
#define DLLSYM
#ifdef _WIN32
#ifndef NOMINMAX

View File

@ -21,7 +21,7 @@
#define TESSERACT_CCUTIL_UNICHAR_H_
#include <memory.h>
#include <string.h>
#include <cstring>
#include <string>
#include <vector>
#include "platform.h"

View File

@ -29,7 +29,7 @@
#include "shapeclassifier.h"
#include "shapetable.h"
#include "unicity_table.h"
#include <string.h>
#include <cstring>
namespace tesseract {
Classify::Classify()

View File

@ -31,7 +31,7 @@
#include "ocrfeatures.h"
#include "clusttool.h"
#include "cluster.h"
#include <string.h>
#include <cstring>
#include <cstdio>
#include <cmath>
#include "unichar.h"

View File

@ -17,7 +17,7 @@
*
**********************************************************************/
#include <string.h>
#include <cstring>
#include <stdio.h>
#include "tessopt.h"

View File

@ -22,7 +22,7 @@
#include <stdarg.h>
#include <limits.h>
#include <string.h>
#include <cstring>
#include <map>
#include <utility>
#include <algorithm>

View File

@ -25,7 +25,7 @@
// A SVMenuNode can both be used in the context_ of popup menus as well as
// menu bars.
#include <string.h>
#include <cstring>
#include <iostream>
#include <cstring>