OLD | NEW |
| (Empty) |
1 // Copyright 2014 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_SRC_FEE_FX_WORDBREAK_FX_WORDBREAK_H_ | |
8 #define XFA_SRC_FEE_FX_WORDBREAK_FX_WORDBREAK_H_ | |
9 | |
10 #include "core/include/fxcrt/fx_string.h" | |
11 #include "core/include/fxcrt/fx_system.h" | |
12 | |
13 class IFX_CharIter; | |
14 | |
15 class IFX_WordBreak { | |
16 public: | |
17 virtual ~IFX_WordBreak() {} | |
18 virtual void Release() = 0; | |
19 virtual void Attach(IFX_CharIter* pIter) = 0; | |
20 virtual void Attach(const CFX_WideString& wsText) = 0; | |
21 virtual FX_BOOL Next(FX_BOOL bPrev) = 0; | |
22 virtual void SetAt(int32_t nIndex) = 0; | |
23 virtual int32_t GetWordPos() const = 0; | |
24 virtual int32_t GetWordLength() const = 0; | |
25 virtual void GetWord(CFX_WideString& wsWord) const = 0; | |
26 virtual FX_BOOL IsEOF(FX_BOOL bTail = TRUE) const = 0; | |
27 }; | |
28 IFX_WordBreak* FX_WordBreak_Create(); | |
29 | |
30 #endif // XFA_SRC_FEE_FX_WORDBREAK_FX_WORDBREAK_H_ | |
OLD | NEW |