mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-14 16:49:30 +08:00
combine condition with next
This commit is contained in:
parent
5c85d8e03d
commit
fc8a3d5bbc
@ -135,8 +135,7 @@ bool ValidateMyanmar::ConsumeOptionalSignsIfPresent() {
|
|||||||
/* static */
|
/* static */
|
||||||
bool ValidateMyanmar::IsMyanmarLetter(char32 ch) {
|
bool ValidateMyanmar::IsMyanmarLetter(char32 ch) {
|
||||||
return (0x1000 <= ch && ch <= 0x102a) || ch == 0x103f ||
|
return (0x1000 <= ch && ch <= 0x102a) || ch == 0x103f ||
|
||||||
(0x104c <= ch && ch <= 0x104f) ||
|
(0x104c <= ch && ch <= 0x1055) || (0x105a <= ch && ch <= 0x105d) ||
|
||||||
(0x1050 <= ch && ch <= 0x1055) || (0x105a <= ch && ch <= 0x105d) ||
|
|
||||||
ch == 0x1061 || ch == 0x1065 || ch == 0x1066 ||
|
ch == 0x1061 || ch == 0x1065 || ch == 0x1066 ||
|
||||||
(0x106e <= ch && ch <= 0x1070) || (0x1075 <= ch && ch <= 0x1080) ||
|
(0x106e <= ch && ch <= 0x1070) || (0x1075 <= ch && ch <= 0x1080) ||
|
||||||
ch == 0x108e || (0xa9e0 <= ch && ch <= 0xa9ef) ||
|
ch == 0x108e || (0xa9e0 <= ch && ch <= 0xa9ef) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user