#include "core/fpdfdoc/cpdf_pagelabel.h"
#include <array>
#include <utility>
#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fpdfapi/parser/cpdf_document.h"
#include "core/fpdfapi/parser/fpdf_parser_decode.h"
#include "core/fpdfdoc/cpdf_numbertree.h"
#include "core/fxcrt/stl_util.h"
namespace {
WideString MakeRoman(int num) { … }
WideString MakeLetters(int num) { … }
WideString GetLabelNumPortion(int num, const ByteString& style) { … }
}
CPDF_PageLabel::CPDF_PageLabel(CPDF_Document* doc) : … { … }
CPDF_PageLabel::~CPDF_PageLabel() = default;
std::optional<WideString> CPDF_PageLabel::GetLabel(int page_index) const { … }