Add type cast definitions for CPDF_Number.
authorDan Sinclair <dsinclair@chromium.org>
Wed, 21 Oct 2015 15:01:01 +0000 (11:01 -0400)
committerDan Sinclair <dsinclair@chromium.org>
Wed, 21 Oct 2015 15:01:01 +0000 (11:01 -0400)
commit83bf02dfb860a66d756434d194118dae572d04d3
tree64647a3ca2708fad1c50235943da63f22ea66a1d
parent8430a5d04883fac4666d0c321fc679bcaf99cb71
Add type cast definitions for CPDF_Number.

This Cl adds ToNumber, CPDF_Object::AsNumber and CPDF_Object::IsNumber and
updates the src to use them as needed.

BUG=pdfium:201
R=thestig@chromium.org

Review URL: https://codereview.chromium.org/1410673005 .
core/include/fpdfapi/fpdf_objects.h
core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp
core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp
core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp
core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp
core/src/fpdfdoc/doc_basic.cpp
core/src/fpdfdoc/doc_formfield.cpp
core/src/fpdfdoc/doc_tagged.cpp
fpdfsdk/src/javascript/Document.cpp