1 // Copyright 2017 The PDFium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef XFA_FDE_CFDE_WORDBREAK_DATA_H_ 8 #define XFA_FDE_CFDE_WORDBREAK_DATA_H_ 9 10 #include <stdint.h> 11 12 namespace pdfium { 13 14 enum class WordBreakProperty : uint8_t { 15 // Internal tables depend on constants computed from these values, so do 16 // not re-order. 17 kNone = 0, 18 kCR, 19 kLF, 20 kNewLine, 21 kExtend, 22 kFormat, 23 kKataKana, 24 kALetter, 25 kMidLetter, 26 kMidNum, 27 kMidNumLet, 28 kNumeric, 29 kExtendNumLet, 30 }; 31 32 bool FX_CheckStateChangeForWordBreak(WordBreakProperty from, 33 WordBreakProperty to); 34 WordBreakProperty FX_GetWordBreakProperty(wchar_t wcCodePoint); 35 36 } // namespace pdfium 37 38 #endif // XFA_FDE_CFDE_WORDBREAK_DATA_H_ 39