| OLD | NEW |
| 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 "../../../include/fpdfapi/fpdf_module.h" | 7 #include "../../../include/fpdfapi/fpdf_module.h" |
| 8 #include "../../../include/fpdfapi/fpdf_page.h" | 8 #include "../../../include/fpdfapi/fpdf_page.h" |
| 9 #include "font_int.h" | 9 #include "font_int.h" |
| 10 #include "../fpdf_cmaps/cmap_int.h" | 10 #include "../fpdf_cmaps/cmap_int.h" |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 num = num * 10 + word.GetAt(i) - '0'; | 177 num = num * 10 + word.GetAt(i) - '0'; |
| 178 } | 178 } |
| 179 } | 179 } |
| 180 return num; | 180 return num; |
| 181 } | 181 } |
| 182 static FX_BOOL _CMap_GetCodeRange(_CMap_CodeRange& range, FX_BSTR first, FX_BSTR
second) | 182 static FX_BOOL _CMap_GetCodeRange(_CMap_CodeRange& range, FX_BSTR first, FX_BSTR
second) |
| 183 { | 183 { |
| 184 if (first.GetLength() == 0 || first.GetAt(0) != '<') { | 184 if (first.GetLength() == 0 || first.GetAt(0) != '<') { |
| 185 return FALSE; | 185 return FALSE; |
| 186 } | 186 } |
| 187 int num = 0; | |
| 188 int i; | 187 int i; |
| 189 for (i = 1; i < first.GetLength(); i ++) | 188 for (i = 1; i < first.GetLength(); i ++) |
| 190 if (first.GetAt(i) == '>') { | 189 if (first.GetAt(i) == '>') { |
| 191 break; | 190 break; |
| 192 } | 191 } |
| 193 range.m_CharSize = (i - 1) / 2; | 192 range.m_CharSize = (i - 1) / 2; |
| 194 if (range.m_CharSize > 4) { | 193 if (range.m_CharSize > 4) { |
| 195 return FALSE; | 194 return FALSE; |
| 196 } | 195 } |
| 197 for (i = 0; i < range.m_CharSize; i ++) { | 196 for (i = 0; i < range.m_CharSize; i ++) { |
| (...skipping 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1703 if (middlecode > CID) { | 1702 if (middlecode > CID) { |
| 1704 end = middle - 1; | 1703 end = middle - 1; |
| 1705 } else if (middlecode < CID) { | 1704 } else if (middlecode < CID) { |
| 1706 begin = middle + 1; | 1705 begin = middle + 1; |
| 1707 } else { | 1706 } else { |
| 1708 return &Japan1_VertCIDs[middle].a; | 1707 return &Japan1_VertCIDs[middle].a; |
| 1709 } | 1708 } |
| 1710 } | 1709 } |
| 1711 return NULL; | 1710 return NULL; |
| 1712 } | 1711 } |
| OLD | NEW |