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

Side by Side Diff: xfa/fde/css/fde_cssdatatable.cpp

Issue 2007443003: Replace CFX_DSPATemplate with std::binary_search. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 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.gyp ('k') | xfa/fgas/crt/fgas_algorithm.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 "xfa/fde/css/fde_cssdatatable.h" 7 #include "xfa/fde/css/fde_cssdatatable.h"
8 8
9 #include "core/fxcrt/include/fx_ext.h" 9 #include "core/fxcrt/include/fx_ext.h"
10 #include "xfa/fgas/crt/fgas_algorithm.h"
11 #include "xfa/fgas/crt/fgas_codepage.h" 10 #include "xfa/fgas/crt/fgas_codepage.h"
12 #include "xfa/fgas/crt/fgas_system.h" 11 #include "xfa/fgas/crt/fgas_system.h"
13 12
14 namespace { 13 namespace {
15 14
16 uint8_t Hex2Dec(uint8_t hexHigh, uint8_t hexLow) { 15 uint8_t Hex2Dec(uint8_t hexHigh, uint8_t hexLow) {
17 return (FXSYS_toHexDigit(hexHigh) << 4) + FXSYS_toHexDigit(hexLow); 16 return (FXSYS_toHexDigit(hexHigh) << 4) + FXSYS_toHexDigit(hexLow);
18 } 17 }
19 18
20 } // namespace 19 } // namespace
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 } 890 }
892 while (iBracketCount > 0 && m_pCur < m_pEnd) { 891 while (iBracketCount > 0 && m_pCur < m_pEnd) {
893 if (*m_pCur == ')') { 892 if (*m_pCur == ')') {
894 iBracketCount--; 893 iBracketCount--;
895 } 894 }
896 m_pCur++; 895 m_pCur++;
897 } 896 }
898 } 897 }
899 return m_pCur - pStart; 898 return m_pCur - pStart;
900 } 899 }
OLDNEW
« no previous file with comments | « xfa.gyp ('k') | xfa/fgas/crt/fgas_algorithm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698