summaryrefslogtreecommitdiff
path: root/xfa/fde/cfde_wordbreak_data.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-09-18 16:21:03 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-09-18 20:35:25 +0000
commit5278cebc468e6975f217d0c016501a554d10fd97 (patch)
tree5e92b047e2bdd2c0b58a50f71e4445c001eff0d0 /xfa/fde/cfde_wordbreak_data.h
parent91c2f7cdcf8545d764a8b6543b42f0819f8d4ad3 (diff)
downloadpdfium-5278cebc468e6975f217d0c016501a554d10fd97.tar.xz
Cleanup word break properties
This CL attempts to clarify the contents of the gs_FX_WordBreak_Table and adds static_asserts that each entry in the WordBreakProperty table has the value we expect. Change-Id: I33c1f12a9e18240b01969be9902204eba5074eb7 Reviewed-on: https://pdfium-review.googlesource.com/13430 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'xfa/fde/cfde_wordbreak_data.h')
-rw-r--r--xfa/fde/cfde_wordbreak_data.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/xfa/fde/cfde_wordbreak_data.h b/xfa/fde/cfde_wordbreak_data.h
index 8cc13e3f4b..28e26cc4fe 100644
--- a/xfa/fde/cfde_wordbreak_data.h
+++ b/xfa/fde/cfde_wordbreak_data.h
@@ -9,6 +9,22 @@
#include <stdint.h>
+enum class WordBreakProperty : uint8_t {
+ kNone = 0,
+ kCR,
+ kLF,
+ kNewLine,
+ kExtend,
+ kFormat,
+ kKataKana,
+ kALetter,
+ kMidLetter,
+ kMidNum,
+ kMidNumLet,
+ kNumeric,
+ kExtendNumLet,
+};
+
extern const uint16_t gs_FX_WordBreak_Table[];
extern const uint8_t gs_FX_WordBreak_CodePointProperties[];