Skip to content

Commit

Permalink
Move unicodes into files where they are used.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Jan 7, 2021
1 parent 8aa5492 commit 4f5bd1c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 62 deletions.
5 changes: 4 additions & 1 deletion src/ccmain/paragraphs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
**********************************************************************/

#include "paragraphs.h"

#include <cctype> // for isspace
#include <cmath> // for abs
#include <cstdio> // for snprintf
Expand Down Expand Up @@ -44,9 +45,11 @@
#include "tprintf.h" // for tprintf
#include <tesseract/unichar.h> // for UNICHAR, UNICHAR_ID
#include "unicharset.h" // for UNICHARSET
#include "unicodes.h" // for kPDF, kRLE
#include "werd.h" // for WERD, W_REP_CHAR

static const char * const kRLE = "\u202A"; // Right-to-Left Embedding
static const char * const kPDF = "\u202C"; // Pop Directional Formatting

namespace tesseract {

// Special "weak" ParagraphModels.
Expand Down
4 changes: 3 additions & 1 deletion src/ccmain/resultiterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@
#include "pageres.h"
#include "tesseractclass.h"
#include "unicharset.h"
#include "unicodes.h"

#include "allheaders.h"

#include <set>
#include <vector>

static const char * const kLRM = "\u200E"; // Left-to-Right Mark
static const char * const kRLM = "\u200F"; // Right-to-Left Mark

namespace tesseract {

ResultIterator::ResultIterator(const LTRResultIterator& resit)
Expand Down
28 changes: 0 additions & 28 deletions src/ccutil/unicodes.cpp

This file was deleted.

31 changes: 0 additions & 31 deletions src/ccutil/unicodes.h

This file was deleted.

1 change: 0 additions & 1 deletion src/dict/dict.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <cstdio>

#include "dict.h"
#include "unicodes.h"

#include "tprintf.h"

Expand Down

0 comments on commit 4f5bd1c

Please sign in to comment.