7#include "core/fpdfapi/parser/cpdf_boolean.h"
9#include "core/fxcrt/fx_stream.h"
11CPDF_Boolean::CPDF_Boolean() =
default;
13CPDF_Boolean::CPDF_Boolean(
bool value) : m_bValue(value) {}
22 return pdfium::MakeRetain<CPDF_Boolean>(m_bValue);
26 return m_bValue ?
"true" :
"false";
33void CPDF_Boolean::
SetString(
const ByteString& str) {
34 m_bValue = (str
== "true");
ByteString GetString() const override
Type GetType() const override
int GetInteger() const override
void SetString(const ByteString &str) override
bool WriteTo(IFX_ArchiveStream *archive, const CPDF_Encryptor *encryptor) const override
CPDF_Boolean * AsMutableBoolean() override
RetainPtr< CPDF_Object > Clone() const override
bool WriteString(ByteStringView str)
bool operator==(const char *ptr) const