| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef XFA_SRC_FEE_FX_WORDBREAK_FX_WORDBREAK_H_ | 7 #ifndef XFA_FEE_FX_WORDBREAK_FX_WORDBREAK_H_ |
| 8 #define XFA_SRC_FEE_FX_WORDBREAK_FX_WORDBREAK_H_ | 8 #define XFA_FEE_FX_WORDBREAK_FX_WORDBREAK_H_ |
| 9 | 9 |
| 10 #include "core/include/fxcrt/fx_string.h" | 10 #include "core/include/fxcrt/fx_string.h" |
| 11 #include "core/include/fxcrt/fx_system.h" | 11 #include "core/include/fxcrt/fx_system.h" |
| 12 | 12 |
| 13 class IFX_CharIter; | 13 class IFX_CharIter; |
| 14 | 14 |
| 15 class IFX_WordBreak { | 15 class IFX_WordBreak { |
| 16 public: | 16 public: |
| 17 virtual ~IFX_WordBreak() {} | 17 virtual ~IFX_WordBreak() {} |
| 18 virtual void Release() = 0; | 18 virtual void Release() = 0; |
| 19 virtual void Attach(IFX_CharIter* pIter) = 0; | 19 virtual void Attach(IFX_CharIter* pIter) = 0; |
| 20 virtual void Attach(const CFX_WideString& wsText) = 0; | 20 virtual void Attach(const CFX_WideString& wsText) = 0; |
| 21 virtual FX_BOOL Next(FX_BOOL bPrev) = 0; | 21 virtual FX_BOOL Next(FX_BOOL bPrev) = 0; |
| 22 virtual void SetAt(int32_t nIndex) = 0; | 22 virtual void SetAt(int32_t nIndex) = 0; |
| 23 virtual int32_t GetWordPos() const = 0; | 23 virtual int32_t GetWordPos() const = 0; |
| 24 virtual int32_t GetWordLength() const = 0; | 24 virtual int32_t GetWordLength() const = 0; |
| 25 virtual void GetWord(CFX_WideString& wsWord) const = 0; | 25 virtual void GetWord(CFX_WideString& wsWord) const = 0; |
| 26 virtual FX_BOOL IsEOF(FX_BOOL bTail = TRUE) const = 0; | 26 virtual FX_BOOL IsEOF(FX_BOOL bTail = TRUE) const = 0; |
| 27 }; | 27 }; |
| 28 IFX_WordBreak* FX_WordBreak_Create(); | 28 IFX_WordBreak* FX_WordBreak_Create(); |
| 29 | 29 |
| 30 #endif // XFA_SRC_FEE_FX_WORDBREAK_FX_WORDBREAK_H_ | 30 #endif // XFA_FEE_FX_WORDBREAK_FX_WORDBREAK_H_ |
| OLD | NEW |