1 // Copyright 2017 PDFium Authors. All rights reserved. 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 enum class WordBreakProperty : uint8_t { 13 // Internal tables depend on constants computed from these values, so do 14 // not re-order. 15 kNone = 0, 16 kCR, 17 kLF, 18 kNewLine, 19 kExtend, 20 kFormat, 21 kKataKana, 22 kALetter, 23 kMidLetter, 24 kMidNum, 25 kMidNumLet, 26 kNumeric, 27 kExtendNumLet, 28 }; 29 30 bool FX_CheckStateChangeForWordBreak(WordBreakProperty from, 31 WordBreakProperty to); 32 WordBreakProperty FX_GetWordBreakProperty(wchar_t wcCodePoint); 33 34 #endif // XFA_FDE_CFDE_WORDBREAK_DATA_H_ 35