summaryrefslogtreecommitdiff
path: root/core/fxcrt/cfx_wordbreak.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-09-06 13:52:35 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-09-06 18:03:58 +0000
commit8f6084b710362e950ae752ac0f5aa6ba954fdbfd (patch)
treeaf848affaf1d8ba3098dcae82f41934e31a09227 /core/fxcrt/cfx_wordbreak.h
parenteb57e0d0b396606b39ef76a864b8bf9dd91a8ed8 (diff)
downloadpdfium-8f6084b710362e950ae752ac0f5aa6ba954fdbfd.tar.xz
Merge CFX_WordBreak into CFDE_TextEditEngine::Iterator.
This CL moves the CFX_WordBreak::FindNextBreakPos into the text edit engine iterator. The word break data was moved to cfde_wordbreak_data. Change-Id: Ie022f5f761479f97b9d4bc7789f890cb2ef99106 Reviewed-on: https://pdfium-review.googlesource.com/13250 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fxcrt/cfx_wordbreak.h')
-rw-r--r--core/fxcrt/cfx_wordbreak.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/core/fxcrt/cfx_wordbreak.h b/core/fxcrt/cfx_wordbreak.h
deleted file mode 100644
index 6e94c71e95..0000000000
--- a/core/fxcrt/cfx_wordbreak.h
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright 2014 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#ifndef CORE_FXCRT_CFX_WORDBREAK_H_
-#define CORE_FXCRT_CFX_WORDBREAK_H_
-
-#include <memory>
-#include <utility>
-
-class IFX_CharIter;
-
-class CFX_WordBreak {
- public:
- explicit CFX_WordBreak(std::unique_ptr<IFX_CharIter> pIter);
- ~CFX_WordBreak();
-
- // <start_idx, end_idx>
- std::pair<size_t, size_t> BoundsAt(int32_t nIndex);
-
- private:
- bool FindNextBreakPos(IFX_CharIter* pIter, bool bPrev);
-
- std::unique_ptr<IFX_CharIter> m_pPreIter;
- std::unique_ptr<IFX_CharIter> m_pCurIter;
-};
-
-#endif // CORE_FXCRT_CFX_WORDBREAK_H_