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 <set> | 7 #include <set> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
918 depth--; | 918 depth--; |
919 } | 919 } |
920 } else if (byte == '(') { | 920 } else if (byte == '(') { |
921 depth++; | 921 depth++; |
922 } | 922 } |
923 if (!depth) { | 923 if (!depth) { |
924 status = 0; | 924 status = 0; |
925 } | 925 } |
926 break; | 926 break; |
927 case 11: | 927 case 11: |
928 if (byte == '<' && inside_index == 1) { | 928 if (byte == '>' || (byte == '<' && inside_index == 1)) |
929 status = 12; | |
930 } else if (byte == '>') { | |
931 status = 0; | 929 status = 0; |
932 } | |
933 inside_index = 0; | 930 inside_index = 0; |
934 break; | 931 break; |
935 case 12: | |
936 --i; | |
937 status = 0; | |
938 break; | |
939 case 13: | 932 case 13: |
940 if (PDFCharIsDelimiter(byte) || PDFCharIsWhitespace(byte)) { | 933 if (PDFCharIsDelimiter(byte) || PDFCharIsWhitespace(byte)) { |
941 --i; | 934 --i; |
942 status = 0; | 935 status = 0; |
943 } | 936 } |
944 break; | 937 break; |
945 case 14: | 938 case 14: |
946 if (PDFCharIsWhitespace(byte)) { | 939 if (PDFCharIsWhitespace(byte)) { |
947 status = 0; | 940 status = 0; |
948 } else if (byte == '%' || byte == '(' || byte == '<' || | 941 } else if (byte == '%' || byte == '(' || byte == '<' || |
(...skipping 3590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4539 return FALSE; | 4532 return FALSE; |
4540 } | 4533 } |
4541 CPDF_PageNode::~CPDF_PageNode() { | 4534 CPDF_PageNode::~CPDF_PageNode() { |
4542 int32_t iSize = m_childNode.GetSize(); | 4535 int32_t iSize = m_childNode.GetSize(); |
4543 for (int32_t i = 0; i < iSize; ++i) { | 4536 for (int32_t i = 0; i < iSize; ++i) { |
4544 CPDF_PageNode* pNode = (CPDF_PageNode*)m_childNode[i]; | 4537 CPDF_PageNode* pNode = (CPDF_PageNode*)m_childNode[i]; |
4545 delete pNode; | 4538 delete pNode; |
4546 } | 4539 } |
4547 m_childNode.RemoveAll(); | 4540 m_childNode.RemoveAll(); |
4548 } | 4541 } |
OLD | NEW |