mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-28 05:39:35 +08:00
change type to UChar32 to fix IsValidCodepoint
This commit is contained in:
parent
e62e8f5f80
commit
a404c9cdb3
@ -217,7 +217,7 @@ bool IsOCREquivalent(char32 ch1, char32 ch2) {
|
||||
|
||||
bool IsValidCodepoint(const char32 ch) {
|
||||
// In the range [0, 0xD800) or [0xE000, 0x10FFFF]
|
||||
return (static_cast<uinT32>(ch) < 0xD800) || (ch >= 0xE000 && ch <= 0x10FFFF);
|
||||
return (static_cast<UChar32>(ch) < 0xD800) || (ch >= 0xE000 && ch <= 0x10FFFF);
|
||||
}
|
||||
|
||||
bool IsWhitespace(const char32 ch) {
|
||||
|
Loading…
Reference in New Issue
Block a user