Home
last modified time | relevance | path

Searched refs:CPDF_String (Results 1 – 25 of 51) sorted by relevance

123

/external/pdfium/core/fpdfapi/parser/
Dcpdf_string.cpp18 CPDF_String::CPDF_String() = default;
20 CPDF_String::CPDF_String(WeakPtr<ByteStringPool> pPool, in CPDF_String() function in CPDF_String
28 CPDF_String::CPDF_String(WeakPtr<ByteStringPool> pPool, WideStringView str) in CPDF_String() function in CPDF_String
34 CPDF_String::~CPDF_String() = default;
36 CPDF_Object::Type CPDF_String::GetType() const { in GetType()
40 RetainPtr<CPDF_Object> CPDF_String::Clone() const { in Clone()
41 auto pRet = pdfium::MakeRetain<CPDF_String>(); in Clone()
47 ByteString CPDF_String::GetString() const { in GetString()
51 void CPDF_String::SetString(const ByteString& str) { in SetString()
55 CPDF_String* CPDF_String::AsMutableString() { in AsMutableString()
[all …]
Dcpdf_string.h16 class CPDF_String final : public CPDF_Object {
26 CPDF_String* AsMutableString() override;
34 CPDF_String();
35 CPDF_String(WeakPtr<ByteStringPool> pPool, const ByteString& str, bool bHex);
36 CPDF_String(WeakPtr<ByteStringPool> pPool, WideStringView str);
37 ~CPDF_String() override;
43 inline CPDF_String* ToString(CPDF_Object* obj) { in ToString()
47 inline const CPDF_String* ToString(const CPDF_Object* obj) { in ToString()
51 inline RetainPtr<const CPDF_String> ToString(RetainPtr<const CPDF_Object> obj) { in ToString()
52 return RetainPtr<const CPDF_String>(ToString(obj.Get())); in ToString()
Dcpdf_object.h28 class CPDF_String; variable
96 virtual CPDF_String* AsMutableString();
130 const CPDF_String* AsString() const;
164 std::is_same<T, CPDF_String>::value;
Dcpdf_object_avail_unittest.cpp132 holder.AddObject(1, pdfium::MakeRetain<CPDF_String>(nullptr, "string", false), in TEST()
144 holder.AddObject(2, pdfium::MakeRetain<CPDF_String>(nullptr, "string", false), in TEST()
250 pdfium::MakeRetain<CPDF_String>(nullptr, "Not available string", false), in TEST()
269 3, pdfium::MakeRetain<CPDF_String>(nullptr, "Exclude me", false), in TEST()
278 pdfium::MakeRetain<CPDF_String>(nullptr, "Not available string", false), in TEST()
307 holder.AddObject(1, pdfium::MakeRetain<CPDF_String>(nullptr, "string", false), in TEST()
329 holder.AddObject(2, pdfium::MakeRetain<CPDF_String>(nullptr, "Data", false), in TEST()
Dcpdf_object_unittest.cpp63 pdfium::MakeRetain<CPDF_String>(nullptr, L"A simple test"); in SetUp()
64 auto str_spec_obj = pdfium::MakeRetain<CPDF_String>(nullptr, L"\t\n"); in SetUp()
79 m_StreamDictObj->SetNewFor<CPDF_String>("key1", L" test dict"); in SetUp()
280 m_DictObj->SetNewFor<CPDF_String>("string", "ium", false); in TEST_F()
554 string_array->InsertNewAt<CPDF_String>(i, vals[i], false); in TEST()
678 arr->InsertNewAt<CPDF_String>(6, "", false); in TEST()
679 arr->InsertNewAt<CPDF_String>(7, "It is a test!", false); in TEST()
689 dict_val->SetNewFor<CPDF_String>("key1", "Linda", false); in TEST()
690 dict_val->SetNewFor<CPDF_String>("key2", "Zoe", false); in TEST()
693 stream_dict->SetNewFor<CPDF_String>("key1", "John", false); in TEST()
[all …]
Dfpdf_parser_utility_unittest.cpp45 dict->SetNewFor<CPDF_String>("Type", L"foo"); in TEST()
75 dict->SetNewFor<CPDF_String>("f3", L"foo"); in TEST()
116 dict->SetNewFor<CPDF_String>("Type", L"foo"); in TEST()
Dfpdf_parser_decode_unittest.cpp74 decoders->AppendNew<CPDF_String>("FlateEncode", false); in TEST()
94 decoders->AppendNew<CPDF_String>("AHx", false); in TEST()
115 decoders->AppendNew<CPDF_String>("RL", false); in TEST()
153 pdfium::MakeRetain<CPDF_String>(nullptr, "FlateDecode", false); in TEST()
188 dict->SetNewFor<CPDF_String>("Filter", "RL", false); in TEST()
Dcpdf_object.cpp158 CPDF_String* CPDF_Object::AsMutableString() { in AsMutableString()
162 const CPDF_String* CPDF_Object::AsString() const { in AsString()
Dcpdf_security_handler.cpp592 pEncryptDict->SetNewFor<CPDF_String>("O", ByteString(passcode, 32), false); in OnCreateInternal()
605 pEncryptDict->SetNewFor<CPDF_String>("U", ByteString(tempbuf, 32), false); in OnCreateInternal()
623 pEncryptDict->SetNewFor<CPDF_String>("U", ByteString(digest, 32), false); in OnCreateInternal()
669 pEncryptDict->SetNewFor<CPDF_String>(bOwner ? "O" : "U", in AES256_SetPassword()
688 pEncryptDict->SetNewFor<CPDF_String>(bOwner ? "OE" : "UE", in AES256_SetPassword()
720 pEncryptDict->SetNewFor<CPDF_String>("Perms", ByteString(buf1, 16), false); in AES256_SetPerms()
Dcpdf_object_walker_unittest.cpp60 EXPECT_EQ(Walk(pdfium::MakeRetain<CPDF_String>()), "Str"); in TEST()
68 dict->SetFor("1", pdfium::MakeRetain<CPDF_String>()); in TEST()
Dcpdf_dictionary.h77 RetainPtr<const CPDF_String> GetStringFor(const ByteString& key) const;
136 const CPDF_String* GetStringForInternal(const ByteString& key) const;
/external/pdfium/core/fpdfdoc/
Dcpdf_formfield_unittest.cpp112 opt_array->AppendNew<CPDF_String>(L"Alpha"); in TEST()
113 opt_array->AppendNew<CPDF_String>(L"Beta"); in TEST()
114 opt_array->AppendNew<CPDF_String>(L"Gamma"); in TEST()
115 opt_array->AppendNew<CPDF_String>(L"Delta"); in TEST()
116 opt_array->AppendNew<CPDF_String>(L"Epsilon"); in TEST()
129 auto values = pdfium::MakeRetain<CPDF_String>(/*pPool=*/nullptr, L"Gamma"); in TEST()
138 auto values = pdfium::MakeRetain<CPDF_String>(/*pPool=*/nullptr, L"Omega"); in TEST()
148 values->AppendNew<CPDF_String>(L"Beta"); in TEST()
158 values->AppendNew<CPDF_String>(L"Omega"); in TEST()
168 values->AppendNew<CPDF_String>(L"Beta"); in TEST()
[all …]
Dcpdf_filespec_unittest.cpp76 auto str_obj = pdfium::MakeRetain<CPDF_String>(nullptr, test_data.input); in TEST()
110 dict_obj->SetNewFor<CPDF_String>(keywords[i], test_data[i].input); in TEST()
115 dict_obj->SetNewFor<CPDF_String>("FS", "URL", false); in TEST()
133 dict_obj->SetNewFor<CPDF_String>("FS", "URL", false); in TEST()
173 dict_obj->SetNewFor<CPDF_String>(keys[i], file_name); in TEST()
188 dict_obj->SetNewFor<CPDF_String>("FS", "URL", false); in TEST()
206 dict_obj->SetNewFor<CPDF_String>("UF", L"test.pdf"); in TEST()
Dcpdf_filespec.cpp100 RetainPtr<const CPDF_String> pUF = in GetFileName()
105 RetainPtr<const CPDF_String> pK = in GetFileName()
115 RetainPtr<const CPDF_String> pValue = in GetFileName()
124 } else if (const CPDF_String* pString = m_pObj->AsString()) { in GetFileName()
Dcpdf_nametree.cpp34 pLimits->SetNewAt<CPDF_String>(0, csRight.AsStringView()); in GetNodeLimitsAndSanitize()
35 pLimits->SetNewAt<CPDF_String>(1, csLeft.AsStringView()); in GetNodeLimitsAndSanitize()
122 pLimits->SetNewAt<CPDF_String>(0, csNewLeft.AsStringView()); in UpdateNodesAndLimitsUponDeletion()
123 pLimits->SetNewAt<CPDF_String>(1, csNewRight.AsStringView()); in UpdateNodesAndLimitsUponDeletion()
163 pLimits->SetNewAt<CPDF_String>(0, csNewLeft.AsStringView()); in UpdateNodesAndLimitsUponDeletion()
164 pLimits->SetNewAt<CPDF_String>(1, csNewRight.AsStringView()); in UpdateNodesAndLimitsUponDeletion()
523 pFind->InsertNewAt<CPDF_String>(nNameIndex, name.AsStringView()); in AddValueAndName()
535 pLimits->SetNewAt<CPDF_String>(0, name.AsStringView()); in AddValueAndName()
538 pLimits->SetNewAt<CPDF_String>(1, name.AsStringView()); in AddValueAndName()
Dcpdf_nametree_unittest.cpp16 names->AppendNew<CPDF_String>(key, false); in AddNameKeyValue()
33 limits->AppendNew<CPDF_String>(least, false); in AddLimitsArray()
34 limits->AppendNew<CPDF_String>(greatest, false); in AddLimitsArray()
44 RetainPtr<const CPDF_String> left = limits->GetStringAt(0); in CheckLimitsArray()
46 RetainPtr<const CPDF_String> right = limits->GetStringAt(1); in CheckLimitsArray()
111 pNames->AppendNew<CPDF_String>(ByteString(kData, sizeof(kData) - 1), true); in TEST()
Dcpdf_bafontmap_unittest.cpp26 annot_dict->SetNewFor<CPDF_String>("DA", "0 0 0 rg /F1 12 Tf", in TEST_F()
54 annot_dict->SetNewFor<CPDF_String>("DA", "0 0 0 rg /F1 12 Tf", in TEST_F()
Dcpdf_action_unittest.cpp42 dict->SetNewFor<CPDF_String>("S", action_type, /*is_hex=*/false); in CreateInvalidActionDictWithType()
49 dict->SetNewFor<CPDF_String>("S", action_type, /*is_hex=*/false); in CreateInvalidActionDictWithoutType()
Dcpdf_formfield.h25 class CPDF_String; variable
148 int FindListSel(CPDF_String* str);
Dcpdf_annotlist.cpp92 pAnnotDict->SetNewFor<CPDF_String>( in CreatePopupAnnot()
95 pAnnotDict->SetNewFor<CPDF_String>(pdfium::annotation::kContents, in CreatePopupAnnot()
166 pAnnotDict->SetNewFor<CPDF_String>( in GenerateAP()
Dcpdf_formfield.cpp368 m_pDict->SetNewFor<CPDF_String>(key, csValue.AsStringView()); in SetValue()
531 m_pDict->SetNewFor<CPDF_String>(pdfium::form_fields::kV, in SetItemSelectionSelected()
540 m_pDict->SetNewFor<CPDF_String>(pdfium::form_fields::kV, in SetItemSelectionSelected()
548 pArray->AppendNew<CPDF_String>(GetOptionValue(i).AsStringView()); in SetItemSelectionSelected()
588 const CPDF_String* pString = pOption->AsString(); in GetOptionText()
Dcpdf_bookmark.cpp30 RetainPtr<const CPDF_String> pString = in GetTitle()
/external/pdfium/fpdfsdk/
Dfpdf_attachment.cpp83 pFile->SetNewFor<CPDF_String>("UF", wsName.AsStringView()); in FPDFDoc_AddAttachment()
84 pFile->SetNewFor<CPDF_String>(pdfium::stream::kF, wsName.AsStringView()); in FPDFDoc_AddAttachment()
178 pParamsDict->SetNewFor<CPDF_String>(bsKey, bsValue, bEncodedAsHex); in FPDFAttachment_SetStringValue()
199 const CPDF_String* stringValue = in FPDFAttachment_GetStringValue()
204 value = pdfium::MakeRetain<CPDF_String>(nullptr, encoded, false) in FPDFAttachment_GetStringValue()
237 pParamsDict->SetNewFor<CPDF_String>( in FPDFAttachment_SetFile()
246 pParamsDict->SetNewFor<CPDF_String>( in FPDFAttachment_SetFile()
Dfpdf_doc_unittest.cpp87 bookmarks[1].obj->SetNewFor<CPDF_String>("Title", L"Chapter 1"); in TEST_F()
93 bookmarks[2].obj->SetNewFor<CPDF_String>("Title", L"Chapter 2"); in TEST_F()
131 bookmarks[1].obj->SetNewFor<CPDF_String>("Title", L"Chapter 1"); in TEST_F()
137 bookmarks[2].obj->SetNewFor<CPDF_String>("Title", L"Chapter 2"); in TEST_F()
166 bookmarks[1].obj->SetNewFor<CPDF_String>("Title", L"Chapter 1"); in TEST_F()
172 bookmarks[2].obj->SetNewFor<CPDF_String>("Title", L"Chapter 2"); in TEST_F()
178 bookmarks[3].obj->SetNewFor<CPDF_String>("Title", L"Chapter 3"); in TEST_F()
Dfpdf_save.cpp123 pArray->InsertNewAt<CPDF_String>(iLast, "datasets", false); in SaveXFADocumentData()
143 pArray->InsertNewAt<CPDF_String>(iLast, "form", false); in SaveXFADocumentData()

123