提交 1371980f 编写于 作者: S Stefan Weil

Replace string.h by standard C++ cstring

Remove the unneeded include statement in platform.h.
Signed-off-by: NStefan Weil <sw@weilnetz.de>
上级 57918c10
......@@ -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>
......
......@@ -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"
......
......@@ -19,7 +19,7 @@
**********************************************************************/
#include <ctype.h>
#include <string.h>
#include <cstring>
#include "tessbox.h"
#include "tessvars.h"
#include "memry.h"
......
......@@ -19,7 +19,7 @@
#include <ctype.h>
#include <errno.h>
#include <string.h>
#include <cstring>
#include "allheaders.h"
#include "boxread.h"
#include "chopper.h"
......
......@@ -24,7 +24,7 @@
#endif
#include <algorithm>
#include <string.h>
#include <cstring>
#include <cmath>
#ifdef __UNIX__
#include <unistd.h>
......
......@@ -18,7 +18,7 @@
**********************************************************************/
#include <algorithm>
#include <string.h>
#include <cstring>
#include <ctype.h>
#include "params.h"
#include "float2int.h"
......
......@@ -19,7 +19,7 @@
#include <ctype.h>
#include <errno.h>
#include <string.h>
#include <cstring>
#ifdef __UNIX__
#include <unistd.h>
#endif
......
......@@ -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"
......
......@@ -21,7 +21,7 @@
#include "thresholder.h"
#include <string.h>
#include <cstring>
#include "otsuthr.h"
......
......@@ -18,7 +18,7 @@
**********************************************************************/
#include "boxread.h"
#include <string.h>
#include <cstring>
#include "fileerr.h"
#include "rect.h"
......
......@@ -18,7 +18,7 @@
**********************************************************************/
#include <algorithm>
#include <string.h>
#include <cstring>
#include "coutln.h"
......
......@@ -19,7 +19,7 @@
#include "otsuthr.h"
#include <string.h>
#include <cstring>
#include "allheaders.h"
#include "helpers.h"
#include "openclwrapper.h"
......
......@@ -17,7 +17,7 @@
//
///////////////////////////////////////////////////////////////////////
#include <string.h>
#include <cstring>
#include "params_training_featdef.h"
......
......@@ -23,7 +23,7 @@
#endif
#include "statistc.h"
#include <string.h>
#include <cstring>
#include <math.h>
#include <stdlib.h>
#include "errcode.h"
......
......@@ -20,7 +20,7 @@
///////////////////////////////////////////////////////////////////////
#include "bitvector.h"
#include <string.h>
#include <cstring>
#include "helpers.h"
#include <algorithm>
......
......@@ -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
......
......@@ -17,14 +17,14 @@
*
**********************************************************************/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "genericvector.h"
#include "scanutils.h"
#include "tprintf.h"
#include "params.h"
#include <stdio.h>
#include <cstring>
#include <stdlib.h>
#include "genericvector.h"
#include "scanutils.h"
#include "tprintf.h"
#include "params.h"
#define PLUS '+' //flag states
#define MINUS '-'
......
......@@ -20,8 +20,6 @@
#ifndef TESSERACT_CCUTIL_PLATFORM_H_
#define TESSERACT_CCUTIL_PLATFORM_H_
#include <string.h>
#define DLLSYM
#ifdef _WIN32
#ifndef NOMINMAX
......
......@@ -21,7 +21,7 @@
#define TESSERACT_CCUTIL_UNICHAR_H_
#include <memory.h>
#include <string.h>
#include <cstring>
#include <string>
#include <vector>
#include "platform.h"
......
......@@ -29,7 +29,7 @@
#include "shapeclassifier.h"
#include "shapetable.h"
#include "unicity_table.h"
#include <string.h>
#include <cstring>
namespace tesseract {
Classify::Classify()
......
......@@ -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"
......
/**********************************************************************
* 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;
......
......@@ -22,7 +22,7 @@
#include <stdarg.h>
#include <limits.h>
#include <string.h>
#include <cstring>
#include <map>
#include <utility>
#include <algorithm>
......
......@@ -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>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册