7#include "core/fpdfdoc/cpdf_numbertree.h"
11#include "core/fpdfapi/parser/cpdf_array.h"
12#include "core/fpdfapi/parser/cpdf_dictionary.h"
18 RetainPtr<
const CPDF_Array> pLimits = pNode->GetArrayFor(
"Limits");
20 (num < pLimits->GetIntegerAt(0) || num > pLimits->GetIntegerAt(1))) {
23 RetainPtr<
const CPDF_Array> pNumbers = pNode->GetArrayFor(
"Nums");
25 for (size_t i = 0; i < pNumbers->size() / 2; i++) {
26 int index = pNumbers->GetIntegerAt(i * 2);
28 return pNumbers->GetDirectObjectAt(i * 2 + 1);
35 RetainPtr<
const CPDF_Array> pKids = pNode->GetArrayFor(
"Kids");
39 for (size_t i = 0; i < pKids->size(); i++) {
40 RetainPtr<
const CPDF_Dictionary> pKid = pKids->GetDictAt(i);
59 return SearchNumberNode(m_pRoot.Get(), num);
CPDF_NumberTree(RetainPtr< const CPDF_Dictionary > pRoot)
RetainPtr< const CPDF_Object > LookupValue(int num) const