Remove unneeded constant kNumHyphenPuncUnicodes

Fixes: 2fbb81070f ("normstrngs: add more hyphens and quotes")
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2024-03-05 14:04:27 +01:00
parent a08a6ac217
commit 6b99ec616f

View File

@ -3,7 +3,6 @@
* Description: Utilities to normalize and manipulate UTF-32 and
* UTF-8 strings.
* Author: Ranjith Unnikrishnan
* Created: Thu July 4 2013
*
* (C) Copyright 2013, Google Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
@ -36,8 +35,7 @@
namespace tesseract {
static bool is_hyphen_punc(const char32 ch) {
static const int kNumHyphenPuncUnicodes = 13;
static const char32 kHyphenPuncUnicodes[kNumHyphenPuncUnicodes] = {
static const char32 kHyphenPuncUnicodes[] = {
'-',
0x2010, // hyphen
0x2011, // non-breaking hyphen