Skip to content

Commit 6d170a1

Browse files
committed
Replace tabs by blanks in source code
blobs.cpp had many tabs and was formatted with clang-format. Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent c9efe5f commit 6d170a1

23 files changed

+189
-201
lines changed

src/ccmain/fixxht.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**********************************************************************
22
* File: fixxht.cpp (Formerly fixxht.c)
33
* Description: Improve x_ht and look out for case inconsistencies
4-
* Author: Phil Cheatle
5-
* Created: Thu Aug 5 14:11:08 BST 1993
4+
* Author: Phil Cheatle
5+
* Created: Thu Aug 5 14:11:08 BST 1993
66
*
77
* (C) Copyright 1992, Hewlett-Packard Ltd.
88
** Licensed under the Apache License, Version 2.0 (the "License");

src/ccmain/tessvars.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**********************************************************************
22
* File: tessvars.cpp (Formerly tessvars.c)
33
* Description: Variables and other globals for tessedit.
4-
* Author: Ray Smith
5-
* Created: Mon Apr 13 13:13:23 BST 1992
4+
* Author: Ray Smith
5+
* Created: Mon Apr 13 13:13:23 BST 1992
66
*
77
* (C) Copyright 1992, Hewlett-Packard Ltd.
88
** Licensed under the Apache License, Version 2.0 (the "License");

src/ccmain/tessvars.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**********************************************************************
22
* File: tessvars.h (Formerly tessvars.h)
33
* Description: Variables and other globals for tessedit.
4-
* Author: Ray Smith
5-
* Created: Mon Apr 13 13:13:23 BST 1992
4+
* Author: Ray Smith
5+
* Created: Mon Apr 13 13:13:23 BST 1992
66
*
77
* (C) Copyright 1992, Hewlett-Packard Ltd.
88
** Licensed under the Apache License, Version 2.0 (the "License");
@@ -17,11 +17,11 @@
1717
*
1818
**********************************************************************/
1919

20-
#ifndef TESSVARS_H
21-
#define TESSVARS_H
20+
#ifndef TESSVARS_H
21+
#define TESSVARS_H
2222

2323
#include <cstdio>
2424

25-
2625
extern FILE *debug_fp; // write debug stuff here
26+
2727
#endif

src/ccstruct/blobs.cpp

+98-109
Large diffs are not rendered by default.

src/ccstruct/crakedge.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**********************************************************************
2-
* File: crakedge.h (Formerly: crkedge.h)
2+
* File: crakedge.h (Formerly: crkedge.h)
33
* Description: Structures for the Crack following edge detector.
4-
* Author: Ray Smith
5-
* Created: Fri Mar 22 16:06:38 GMT 1991
4+
* Author: Ray Smith
5+
* Created: Fri Mar 22 16:06:38 GMT 1991
66
*
77
* (C) Copyright 1991, Hewlett-Packard Ltd.
88
** Licensed under the Apache License, Version 2.0 (the "License");
@@ -17,11 +17,11 @@
1717
*
1818
**********************************************************************/
1919

20-
#ifndef CRAKEDGE_H
21-
#define CRAKEDGE_H
20+
#ifndef CRAKEDGE_H
21+
#define CRAKEDGE_H
2222

23-
#include "points.h"
24-
#include "mod128.h"
23+
#include "points.h"
24+
#include "mod128.h"
2525

2626
class CRACKEDGE {
2727
public:

src/ccstruct/linlsq.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**********************************************************************
22
* File: linlsq.cpp (Formerly llsq.c)
33
* Description: Linear Least squares fitting code.
4-
* Author: Ray Smith
5-
* Created: Thu Sep 12 08:44:51 BST 1991
4+
* Author: Ray Smith
5+
* Created: Thu Sep 12 08:44:51 BST 1991
66
*
77
* (C) Copyright 1991, Hewlett-Packard Ltd.
88
** Licensed under the Apache License, Version 2.0 (the "License");
@@ -17,10 +17,10 @@
1717
*
1818
**********************************************************************/
1919

20-
#include <stdio.h>
21-
#include <math.h>
22-
#include "errcode.h"
23-
#include "linlsq.h"
20+
#include <stdio.h>
21+
#include <math.h>
22+
#include "errcode.h"
23+
#include "linlsq.h"
2424

2525
const ERRCODE EMPTY_LLSQ = "Can't delete from an empty LLSQ";
2626

src/ccstruct/ocrblock.h

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**********************************************************************
22
* File: ocrblock.h (Formerly block.h)
33
* Description: Page block class definition.
4-
* Author: Ray Smith
5-
* Created: Thu Mar 14 17:32:01 GMT 1991
4+
* Author: Ray Smith
5+
* Created: Thu Mar 14 17:32:01 GMT 1991
66
*
77
* (C) Copyright 1991, Hewlett-Packard Ltd.
88
** Licensed under the Apache License, Version 2.0 (the "License");
@@ -17,12 +17,12 @@
1717
*
1818
**********************************************************************/
1919

20-
#ifndef OCRBLOCK_H
21-
#define OCRBLOCK_H
20+
#ifndef OCRBLOCK_H
21+
#define OCRBLOCK_H
2222

23-
#include "ocrpara.h"
24-
#include "ocrrow.h"
25-
#include "pdblock.h"
23+
#include "ocrpara.h"
24+
#include "ocrrow.h"
25+
#include "pdblock.h"
2626

2727
class BLOCK; //forward decl
2828

@@ -208,7 +208,7 @@ class BLOCK:public ELIST_LINK
208208
FCOORD re_rotation_; //< How to transform coords back to image.
209209
FCOORD classify_rotation_; //< Apply this before classifying.
210210
FCOORD skew_; //< Direction of true horizontal.
211-
ICOORD median_size_; //< Median size of blobs.
211+
ICOORD median_size_; //< Median size of blobs.
212212
};
213213

214214
int decreasing_top_order(const void *row1, const void *row2);

src/ccstruct/ocrrow.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**********************************************************************
22
* File: ocrrow.cpp (Formerly row.c)
33
* Description: Code for the ROW class.
4-
* Author: Ray Smith
5-
* Created: Tue Oct 08 15:58:04 BST 1991
4+
* Author: Ray Smith
5+
* Created: Tue Oct 08 15:58:04 BST 1991
66
*
77
* (C) Copyright 1991, Hewlett-Packard Ltd.
88
** Licensed under the Apache License, Version 2.0 (the "License");
@@ -17,8 +17,8 @@
1717
*
1818
**********************************************************************/
1919

20-
#include "ocrrow.h"
21-
#include "blobbox.h"
20+
#include "ocrrow.h"
21+
#include "blobbox.h"
2222

2323
// Include automatically generated configuration file if running autoconf.
2424
#ifdef HAVE_CONFIG_H

src/ccstruct/points.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**********************************************************************
22
* File: points.cpp (Formerly coords.c)
33
* Description: Member functions for coordinate classes.
4-
* Author: Ray Smith
5-
* Created: Fri Mar 15 08:58:17 GMT 1991
4+
* Author: Ray Smith
5+
* Created: Fri Mar 15 08:58:17 GMT 1991
66
*
77
* (C) Copyright 1991, Hewlett-Packard Ltd.
88
** Licensed under the Apache License, Version 2.0 (the "License");

src/ccstruct/polyaprx.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**********************************************************************
22
* File: polyaprx.h (Formerly polygon.h)
33
* Description: Code for polygonal approximation from old edgeprog.
4-
* Author: Ray Smith
5-
* Created: Thu Nov 25 11:42:04 GMT 1993
4+
* Author: Ray Smith
5+
* Created: Thu Nov 25 11:42:04 GMT 1993
66
*
77
* (C) Copyright 1993, Hewlett-Packard Ltd.
88
** Licensed under the Apache License, Version 2.0 (the "License");
@@ -17,11 +17,11 @@
1717
*
1818
**********************************************************************/
1919

20-
#ifndef POLYAPRX_H
21-
#define POLYAPRX_H
20+
#ifndef POLYAPRX_H
21+
#define POLYAPRX_H
2222

23-
#include "blobs.h"
24-
#include "coutln.h"
23+
#include "blobs.h"
24+
#include "coutln.h"
2525

2626
// convert a chain-coded input to the old OUTLINE approximation
2727
TESSLINE* ApproximateOutline(bool allow_detailed_fx, C_OUTLINE *c_outline);

src/ccstruct/polyblk.h

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
/**********************************************************************
22
* File: polyblk.h (Formerly poly_block.h)
33
* Description: Polygonal blocks
4-
* Author: Sheelagh Lloyd?
5-
* Created:
64
*
75
* (C) Copyright 1993, Hewlett-Packard Ltd.
86
** Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,8 +14,9 @@
1614
** limitations under the License.
1715
*
1816
**********************************************************************/
19-
#ifndef POLYBLK_H
20-
#define POLYBLK_H
17+
18+
#ifndef POLYBLK_H
19+
#define POLYBLK_H
2120

2221
#include "publictypes.h"
2322
#include "elst.h"

src/ccstruct/publictypes.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ enum OcrEngineMode {
278278
// command-line configs, or if not specified
279279
// in any of the above should be set to the
280280
// default OEM_TESSERACT_ONLY.
281-
OEM_COUNT // Number of OEMs
281+
OEM_COUNT // Number of OEMs
282282
};
283283

284284
} // namespace tesseract.

src/ccstruct/quadlsq.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**********************************************************************
22
* File: quadlsq.cpp (Formerly qlsq.c)
33
* Description: Code for least squares approximation of quadratics.
4-
* Author: Ray Smith
5-
* Created: Wed Oct 6 15:14:23 BST 1993
4+
* Author: Ray Smith
5+
* Created: Wed Oct 6 15:14:23 BST 1993
66
*
77
* (C) Copyright 1993, Hewlett-Packard Ltd.
88
** Licensed under the Apache License, Version 2.0 (the "License");

src/ccstruct/quadlsq.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**********************************************************************
22
* File: quadlsq.h (Formerly qlsq.h)
33
* Description: Code for least squares approximation of quadratics.
4-
* Author: Ray Smith
5-
* Created: Wed Oct 6 15:14:23 BST 1993
4+
* Author: Ray Smith
5+
* Created: Wed Oct 6 15:14:23 BST 1993
66
*
77
* (C) Copyright 1993, Hewlett-Packard Ltd.
88
** Licensed under the Apache License, Version 2.0 (the "License");
@@ -17,10 +17,10 @@
1717
*
1818
**********************************************************************/
1919

20-
#ifndef QUADLSQ_H
21-
#define QUADLSQ_H
20+
#ifndef QUADLSQ_H
21+
#define QUADLSQ_H
2222

23-
#include "points.h"
23+
#include "points.h"
2424

2525
class QLSQ
2626
{

src/ccstruct/quadratc.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**********************************************************************
22
* File: quadratc.h (Formerly quadrtic.h)
33
* Description: Code for the QUAD_COEFFS class.
4-
* Author: Ray Smith
5-
* Created: Tue Oct 08 17:24:40 BST 1991
4+
* Author: Ray Smith
5+
* Created: Tue Oct 08 17:24:40 BST 1991
66
*
77
* (C) Copyright 1991, Hewlett-Packard Ltd.
88
** Licensed under the Apache License, Version 2.0 (the "License");
@@ -17,10 +17,10 @@
1717
*
1818
**********************************************************************/
1919

20-
#ifndef QUADRATC_H
21-
#define QUADRATC_H
20+
#ifndef QUADRATC_H
21+
#define QUADRATC_H
2222

23-
#include "points.h"
23+
#include "points.h"
2424

2525
class QUAD_COEFFS
2626
{

src/ccstruct/rejctmap.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**********************************************************************
22
* File: rejctmap.cpp (Formerly rejmap.c)
33
* Description: REJ and REJMAP class functions.
4-
* Author: Phil Cheatle
5-
* Created: Thu Jun 9 13:46:38 BST 1994
4+
* Author: Phil Cheatle
5+
* Created: Thu Jun 9 13:46:38 BST 1994
66
*
77
* (C) Copyright 1994, Hewlett-Packard Ltd.
88
** Licensed under the Apache License, Version 2.0 (the "License");
@@ -17,9 +17,9 @@
1717
*
1818
**********************************************************************/
1919

20-
#include "host.h"
21-
#include "rejctmap.h"
22-
#include "params.h"
20+
#include "host.h"
21+
#include "rejctmap.h"
22+
#include "params.h"
2323

2424
bool REJ::perm_rejected() { //Is char perm reject?
2525
return (flag (R_TESS_FAILURE) ||

src/ccstruct/statistc.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**********************************************************************
22
* File: statistc.h (Formerly stats.h)
33
* Description: Class description for STATS class.
4-
* Author: Ray Smith
5-
* Created: Mon Feb 04 16:19:07 GMT 1991
4+
* Author: Ray Smith
5+
* Created: Mon Feb 04 16:19:07 GMT 1991
66
*
77
* (C) Copyright 1991, Hewlett-Packard Ltd.
88
** Licensed under the Apache License, Version 2.0 (the "License");

src/ccstruct/stepblob.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**********************************************************************
22
* File: stepblob.cpp (Formerly cblob.c)
33
* Description: Code for C_BLOB class.
4-
* Author: Ray Smith
5-
* Created: Tue Oct 08 10:41:13 BST 1991
4+
* Author: Ray Smith
5+
* Created: Tue Oct 08 10:41:13 BST 1991
66
*
77
* (C) Copyright 1991, Hewlett-Packard Ltd.
88
** Licensed under the Apache License, Version 2.0 (the "License");

src/ccstruct/stepblob.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**********************************************************************
22
* File: stepblob.h (Formerly cblob.h)
33
* Description: Code for C_BLOB class.
4-
* Author: Ray Smith
5-
* Created: Tue Oct 08 10:41:13 BST 1991
4+
* Author: Ray Smith
5+
* Created: Tue Oct 08 10:41:13 BST 1991
66
*
77
* (C) Copyright 1991, Hewlett-Packard Ltd.
88
** Licensed under the Apache License, Version 2.0 (the "License");
@@ -17,11 +17,11 @@
1717
*
1818
**********************************************************************/
1919

20-
#ifndef STEPBLOB_H
21-
#define STEPBLOB_H
20+
#ifndef STEPBLOB_H
21+
#define STEPBLOB_H
2222

23-
#include "coutln.h"
24-
#include "rect.h"
23+
#include "coutln.h"
24+
#include "rect.h"
2525

2626
class C_BLOB;
2727
struct Pix;

src/ccstruct/vecfuncs.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ struct EDGEPT;
4141

4242
#define point_diff(p,p1,p2) \
4343
((p).x = (p1).x - (p2).x, \
44-
(p).y = (p1).y - (p2).y)
44+
(p).y = (p1).y - (p2).y)
4545

4646
/**********************************************************************
4747
* CROSS

src/ccutil/bits16.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**********************************************************************
22
* File: bits16.h (Formerly bits8.h)
33
* Description: Code for 8 bit field class.
4-
* Author: Phil Cheatle
5-
* Created: Thu Oct 17 10:10:05 BST 1991
4+
* Author: Phil Cheatle
5+
* Created: Thu Oct 17 10:10:05 BST 1991
66
*
77
* (C) Copyright 1991, Hewlett-Packard Ltd.
88
** Licensed under the Apache License, Version 2.0 (the "License");
@@ -17,8 +17,8 @@
1717
*
1818
**********************************************************************/
1919

20-
#ifndef BITS16_H
21-
#define BITS16_H
20+
#ifndef BITS16_H
21+
#define BITS16_H
2222

2323
#include "host.h"
2424

0 commit comments

Comments
 (0)