Lines Matching defs:CPDF_Number
7 #include "core/fpdfapi/parser/cpdf_number.h"
10 CPDF_Number::CPDF_Number() : m_bInteger(true), m_Integer(0) {}
12 CPDF_Number::CPDF_Number(int value) : m_bInteger(true), m_Integer(value) {}
14 CPDF_Number::CPDF_Number(FX_FLOAT value) : m_bInteger(false), m_Float(value) {}
16 CPDF_Number::CPDF_Number(const CFX_ByteStringC& str)
19 CPDF_Number::~CPDF_Number() {}
21 CPDF_Object::Type CPDF_Number::GetType() const {
25 std::unique_ptr<CPDF_Object> CPDF_Number::Clone() const {
26 return m_bInteger ? pdfium::MakeUnique<CPDF_Number>(m_Integer)
27 : pdfium::MakeUnique<CPDF_Number>(m_Float);
30 FX_FLOAT CPDF_Number::GetNumber() const {
34 int CPDF_Number::GetInteger() const {
38 bool CPDF_Number::IsNumber() const {
42 CPDF_Number* CPDF_Number::AsNumber() {
46 const CPDF_Number* CPDF_Number::AsNumber() const {
50 void CPDF_Number::SetString(const CFX_ByteString& str) {
54 CFX_ByteString CPDF_Number::GetString() const {