#include "core/fpdfdoc/cpdf_defaultappearance.h"
#include <algorithm>
#include <vector>
#include "core/fpdfapi/parser/cpdf_simple_parser.h"
#include "core/fpdfapi/parser/fpdf_parser_utility.h"
#include "core/fxcrt/fx_string.h"
#include "core/fxcrt/notreached.h"
#include "core/fxge/cfx_color.h"
namespace {
bool FindTagParamFromStart(CPDF_SimpleParser* parser,
ByteStringView token,
int nParams) { … }
}
CPDF_DefaultAppearance::CPDF_DefaultAppearance(const ByteString& csDA)
: … { … }
CPDF_DefaultAppearance::CPDF_DefaultAppearance(
const CPDF_DefaultAppearance& cDA) = default;
CPDF_DefaultAppearance::~CPDF_DefaultAppearance() = default;
std::optional<ByteString> CPDF_DefaultAppearance::GetFont(
float* fFontSize) const { … }
std::optional<CFX_Color> CPDF_DefaultAppearance::GetColor() const { … }
std::optional<CFX_Color::TypeAndARGB> CPDF_DefaultAppearance::GetColorARGB()
const { … }
bool CPDF_DefaultAppearance::FindTagParamFromStartForTesting(
CPDF_SimpleParser* parser,
ByteStringView token,
int nParams) { … }