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

Side by Side Diff: fpdfsdk/src/fpdftext.cpp

Issue 1294713002: Cleanup: s/Torelance/Tolerance/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 4 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/src/fpdftext/text_int.h ('k') | public/fpdf_text.h » ('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 #include "../../core/include/fpdfdoc/fpdf_doc.h" 7 #include "../../core/include/fpdfdoc/fpdf_doc.h"
8 #include "../../core/include/fpdftext/fpdf_text.h" 8 #include "../../core/include/fpdftext/fpdf_text.h"
9 #include "../../public/fpdf_text.h" 9 #include "../../public/fpdf_text.h"
10 10
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 *left = charinfo.m_CharBox.left; 78 *left = charinfo.m_CharBox.left;
79 *right = charinfo.m_CharBox.right; 79 *right = charinfo.m_CharBox.right;
80 *bottom = charinfo.m_CharBox.bottom; 80 *bottom = charinfo.m_CharBox.bottom;
81 *top = charinfo.m_CharBox.top; 81 *top = charinfo.m_CharBox.top;
82 } 82 }
83 83
84 // select 84 // select
85 DLLEXPORT int STDCALL FPDFText_GetCharIndexAtPos(FPDF_TEXTPAGE text_page, 85 DLLEXPORT int STDCALL FPDFText_GetCharIndexAtPos(FPDF_TEXTPAGE text_page,
86 double x, 86 double x,
87 double y, 87 double y,
88 double xTorelance, 88 double xTolerance,
89 double yTorelance) { 89 double yTolerance) {
90 if (!text_page) 90 if (!text_page)
91 return -3; 91 return -3;
92 IPDF_TextPage* textpage = (IPDF_TextPage*)text_page; 92 IPDF_TextPage* textpage = (IPDF_TextPage*)text_page;
93 return textpage->GetIndexAtPos((FX_FLOAT)x, (FX_FLOAT)y, (FX_FLOAT)xTorelance, 93 return textpage->GetIndexAtPos((FX_FLOAT)x, (FX_FLOAT)y, (FX_FLOAT)xTolerance,
94 (FX_FLOAT)yTorelance); 94 (FX_FLOAT)yTolerance);
95 } 95 }
96 96
97 DLLEXPORT int STDCALL FPDFText_GetText(FPDF_TEXTPAGE text_page, 97 DLLEXPORT int STDCALL FPDFText_GetText(FPDF_TEXTPAGE text_page,
98 int start, 98 int start,
99 int count, 99 int count,
100 unsigned short* result) { 100 unsigned short* result) {
101 if (!text_page) 101 if (!text_page)
102 return 0; 102 return 0;
103 IPDF_TextPage* textpage = (IPDF_TextPage*)text_page; 103 IPDF_TextPage* textpage = (IPDF_TextPage*)text_page;
104 104
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 CFX_FloatRect rect = rectArray.GetAt(rect_index); 278 CFX_FloatRect rect = rectArray.GetAt(rect_index);
279 *left = rect.left; 279 *left = rect.left;
280 *right = rect.right; 280 *right = rect.right;
281 *top = rect.top; 281 *top = rect.top;
282 *bottom = rect.bottom; 282 *bottom = rect.bottom;
283 } 283 }
284 } 284 }
285 DLLEXPORT void STDCALL FPDFLink_CloseWebLinks(FPDF_PAGELINK link_page) { 285 DLLEXPORT void STDCALL FPDFLink_CloseWebLinks(FPDF_PAGELINK link_page) {
286 delete (IPDF_LinkExtract*)link_page; 286 delete (IPDF_LinkExtract*)link_page;
287 } 287 }
OLDNEW
« no previous file with comments | « core/src/fpdftext/text_int.h ('k') | public/fpdf_text.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698