Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: xfa/fee/fx_wordbreak/fx_wordbreak_impl.h

Issue 1882213002: Cleanup various IFX_ text interfaces. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fee/fx_wordbreak/fx_wordbreak.h ('k') | xfa/fee/fx_wordbreak/fx_wordbreak_impl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_FEE_FX_WORDBREAK_FX_WORDBREAK_IMPL_H_ 7 #ifndef XFA_FEE_FX_WORDBREAK_FX_WORDBREAK_IMPL_H_
8 #define XFA_FEE_FX_WORDBREAK_FX_WORDBREAK_IMPL_H_ 8 #define XFA_FEE_FX_WORDBREAK_FX_WORDBREAK_IMPL_H_
9 9
10 #include <cstdint> 10 #include <cstdint>
(...skipping 15 matching lines...) Expand all
26 FX_WordBreakProp_Format, 26 FX_WordBreakProp_Format,
27 FX_WordBreakProp_KataKana, 27 FX_WordBreakProp_KataKana,
28 FX_WordBreakProp_ALetter, 28 FX_WordBreakProp_ALetter,
29 FX_WordBreakProp_MidLetter, 29 FX_WordBreakProp_MidLetter,
30 FX_WordBreakProp_MidNum, 30 FX_WordBreakProp_MidNum,
31 FX_WordBreakProp_MidNumLet, 31 FX_WordBreakProp_MidNumLet,
32 FX_WordBreakProp_Numberic, 32 FX_WordBreakProp_Numberic,
33 FX_WordBreakProp_ExtendNumLet, 33 FX_WordBreakProp_ExtendNumLet,
34 }; 34 };
35 FX_WordBreakProp FX_GetWordBreakProperty(FX_WCHAR wcCodePoint); 35 FX_WordBreakProp FX_GetWordBreakProperty(FX_WCHAR wcCodePoint);
36 class CFX_CharIter : public IFX_CharIter {
37 public:
38 CFX_CharIter(const CFX_WideString& wsText);
39 virtual void Release();
40 virtual FX_BOOL Next(FX_BOOL bPrev = FALSE);
41 virtual FX_WCHAR GetChar();
42 virtual void SetAt(int32_t nIndex);
43 virtual int32_t GetAt() const;
44 virtual FX_BOOL IsEOF(FX_BOOL bTail = TRUE) const;
45 virtual IFX_CharIter* Clone();
46
47 protected:
48 ~CFX_CharIter();
49
50 private:
51 const CFX_WideString& m_wsText;
52 int32_t m_nIndex;
53 };
54 class CFX_WordBreak : public IFX_WordBreak {
55 public:
56 CFX_WordBreak();
57 virtual void Release();
58 virtual void Attach(IFX_CharIter* pIter);
59 virtual void Attach(const CFX_WideString& wsText);
60 virtual FX_BOOL Next(FX_BOOL bPrev);
61 virtual void SetAt(int32_t nIndex);
62 virtual int32_t GetWordPos() const;
63 virtual int32_t GetWordLength() const;
64 virtual void GetWord(CFX_WideString& wsWord) const;
65 virtual FX_BOOL IsEOF(FX_BOOL bTail) const;
66
67 protected:
68 ~CFX_WordBreak();
69 FX_BOOL FindNextBreakPos(IFX_CharIter* pIter,
70 FX_BOOL bPrev,
71 FX_BOOL bFromNext = TRUE);
72
73 private:
74 IFX_CharIter* m_pPreIter;
75 IFX_CharIter* m_pCurIter;
76 };
77 36
78 #endif // XFA_FEE_FX_WORDBREAK_FX_WORDBREAK_IMPL_H_ 37 #endif // XFA_FEE_FX_WORDBREAK_FX_WORDBREAK_IMPL_H_
OLDNEW
« no previous file with comments | « xfa/fee/fx_wordbreak/fx_wordbreak.h ('k') | xfa/fee/fx_wordbreak/fx_wordbreak_impl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698