1 // Copyright 2014 PDFium Authors. All rights reserved.
\r
2 // Use of this source code is governed by a BSD-style license that can be
\r
3 // found in the LICENSE file.
\r
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
\r
7 #ifndef _FX_WORDBREAK_H
\r
8 #define _FX_WORDBREAK_H
\r
13 virtual void Release() = 0;
\r
14 virtual void Attach(IFX_CharIter * pIter) = 0;
\r
15 virtual void Attach(const CFX_WideString & wsText) = 0;
\r
16 virtual FX_BOOL Next(FX_BOOL bPrev) = 0;
\r
17 virtual void SetAt(FX_INT32 nIndex) = 0;
\r
18 virtual FX_INT32 GetWordPos() const = 0;
\r
19 virtual FX_INT32 GetWordLength() const = 0;
\r
20 virtual void GetWord(CFX_WideString &wsWord) const = 0;
\r
21 virtual FX_BOOL IsEOF(FX_BOOL bTail = TRUE) const = 0;
\r
23 IFX_WordBreak * FX_WordBreak_Create();
\r