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

Side by Side Diff: core/fpdftext/cpdf_textpagefind.cpp

Issue 2382723003: Move core/fxcrt/include to core/fxcrt (Closed)
Patch Set: Rebase to master Created 4 years, 2 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 | « core/fpdftext/cpdf_textpagefind.h ('k') | core/fpdftext/unicodenormalizationdata.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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 #include "core/fpdftext/cpdf_textpagefind.h" 7 #include "core/fpdftext/cpdf_textpagefind.h"
8 8
9 #include <cwchar> 9 #include <cwchar>
10 #include <cwctype> 10 #include <cwctype>
11 #include <vector> 11 #include <vector>
12 12
13 #include "core/fpdftext/cpdf_textpage.h" 13 #include "core/fpdftext/cpdf_textpage.h"
14 #include "core/fxcrt/include/fx_string.h" 14 #include "core/fxcrt/fx_string.h"
15 #include "core/fxcrt/include/fx_system.h" 15 #include "core/fxcrt/fx_system.h"
16 #include "third_party/base/stl_util.h" 16 #include "third_party/base/stl_util.h"
17 17
18 namespace { 18 namespace {
19 19
20 FX_BOOL IsIgnoreSpaceCharacter(FX_WCHAR curChar) { 20 FX_BOOL IsIgnoreSpaceCharacter(FX_WCHAR curChar) {
21 if (curChar < 255 || (curChar >= 0x0600 && curChar <= 0x06FF) || 21 if (curChar < 255 || (curChar >= 0x0600 && curChar <= 0x06FF) ||
22 (curChar >= 0xFE70 && curChar <= 0xFEFF) || 22 (curChar >= 0xFE70 && curChar <= 0xFEFF) ||
23 (curChar >= 0xFB50 && curChar <= 0xFDFF) || 23 (curChar >= 0xFB50 && curChar <= 0xFDFF) ||
24 (curChar >= 0x0400 && curChar <= 0x04FF) || 24 (curChar >= 0x0400 && curChar <= 0x04FF) ||
25 (curChar >= 0x0500 && curChar <= 0x052F) || 25 (curChar >= 0x0500 && curChar <= 0x052F) ||
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 398
399 int CPDF_TextPageFind::GetCurOrder() const { 399 int CPDF_TextPageFind::GetCurOrder() const {
400 return GetCharIndex(m_resStart); 400 return GetCharIndex(m_resStart);
401 } 401 }
402 402
403 int CPDF_TextPageFind::GetMatchedCount() const { 403 int CPDF_TextPageFind::GetMatchedCount() const {
404 int resStart = GetCharIndex(m_resStart); 404 int resStart = GetCharIndex(m_resStart);
405 int resEnd = GetCharIndex(m_resEnd); 405 int resEnd = GetCharIndex(m_resEnd);
406 return resEnd - resStart + 1; 406 return resEnd - resStart + 1;
407 } 407 }
OLDNEW
« no previous file with comments | « core/fpdftext/cpdf_textpagefind.h ('k') | core/fpdftext/unicodenormalizationdata.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698