forked from koreader/crengine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LVString: fix char props, add lStr_isCJK() and lStr_isRTL()
Reorganize CH_PROP_* flags: remove unused ones, combine some of them to possibly get new slots for the future. Fix some chars' CH_PROP, have getCharProp() correctly set them for other ranges thanks to utf8proc categories, even if some of these flags are not used yet. Factorize RTL detection in lStr_isRTL(). Factorize CJK detection in lStr_isCJK(). Remove wrong defines of CJK ranges: they were mostly used in legacy code (where we harcoded these bad ranges, not worth fixing them).
- Loading branch information
Showing
6 changed files
with
382 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.