Merge pull request #1696 from stweil/includes

Replace string.h by standard C++ cstring
This commit is contained in:
zdenop 2018-06-21 21:26:28 +02:00 committed by GitHub
commit a20473da43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

@ -17,15 +17,15 @@
*
**********************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <cstring>
#ifdef __UNIX__
#include <signal.h>
#include <signal.h>
#endif
#include "tprintf.h"
#include "errcode.h"
#include "tprintf.h"
#include "errcode.h"
const ERRCODE BADERRACTION = "Illegal error action";
#define MAX_MSG 1024

View File

@ -17,14 +17,14 @@
*
**********************************************************************/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <cstring>
#include <stdlib.h>
#include "genericvector.h"
#include "scanutils.h"
#include "tprintf.h"
#include "params.h"
#include "genericvector.h"
#include "scanutils.h"
#include "tprintf.h"
#include "params.h"
#define PLUS '+' //flag states
#define MINUS '-'

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

@ -1,8 +1,8 @@
/**********************************************************************
* File: tessopt.cpp
* Description: Re-implementation of the unix code.
* Author: Ray Smith
* Created: Tue Nov 28 05:52:50 MST 1995
* Author: Ray Smith
* Created: Tue Nov 28 05:52:50 MST 1995
*
* (C) Copyright 1995, Hewlett-Packard Co.
** Licensed under the Apache License, Version 2.0 (the "License");
@ -17,9 +17,9 @@
*
**********************************************************************/
#include <string.h>
#include <stdio.h>
#include "tessopt.h"
#include <cstring>
#include <stdio.h>
#include "tessopt.h"
int tessoptind;
char *tessoptarg;

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>