Home
last modified time | relevance | path

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

12

/external/pdfium/core/fpdfapi/parser/
Dcpdf_string.cpp17 CPDF_String::CPDF_String() = default;
19 CPDF_String::CPDF_String(WeakPtr<ByteStringPool> pPool, in CPDF_String() function in CPDF_String
27 CPDF_String::CPDF_String(WeakPtr<ByteStringPool> pPool, const WideString& str) in CPDF_String() function in CPDF_String
33 CPDF_String::~CPDF_String() = default;
35 CPDF_Object::Type CPDF_String::GetType() const { in GetType()
39 RetainPtr<CPDF_Object> CPDF_String::Clone() const { in Clone()
40 auto pRet = pdfium::MakeRetain<CPDF_String>(); in Clone()
46 ByteString CPDF_String::GetString() const { in GetString()
50 void CPDF_String::SetString(const ByteString& str) { in SetString()
54 bool CPDF_String::IsString() const { in IsString()
[all …]
Dcpdf_string.h18 class CPDF_String final : public CPDF_Object {
30 CPDF_String* AsString() override;
31 const CPDF_String* AsString() const override;
38 CPDF_String();
39 CPDF_String(WeakPtr<ByteStringPool> pPool, const ByteString& str, bool bHex);
40 CPDF_String(WeakPtr<ByteStringPool> pPool, const WideString& str);
41 ~CPDF_String() override;
47 inline CPDF_String* ToString(CPDF_Object* obj) { in ToString()
51 inline const CPDF_String* ToString(const CPDF_Object* obj) { in ToString()
Dcpdf_object.h27 class CPDF_String; variable
94 virtual CPDF_String* AsString();
95 virtual const CPDF_String* AsString() const;
131 std::is_same<T, CPDF_String>::value;
Dcpdf_object_avail_unittest.cpp133 holder.AddObject(1, pdfium::MakeRetain<CPDF_String>(nullptr, "string", false), in TEST()
146 holder.AddObject(2, pdfium::MakeRetain<CPDF_String>(nullptr, "string", false), in TEST()
258 pdfium::MakeRetain<CPDF_String>(nullptr, "Not available string", false), in TEST()
277 3, pdfium::MakeRetain<CPDF_String>(nullptr, "Exclude me", false), in TEST()
286 pdfium::MakeRetain<CPDF_String>(nullptr, "Not available string", false), in TEST()
316 holder.AddObject(1, pdfium::MakeRetain<CPDF_String>(nullptr, "string", false), in TEST()
338 holder.AddObject(2, pdfium::MakeRetain<CPDF_String>(nullptr, "Data", false), in TEST()
Dcpdf_object_unittest.cpp59 pdfium::MakeRetain<CPDF_String>(nullptr, L"A simple test"); in SetUp()
60 auto str_spec_obj = pdfium::MakeRetain<CPDF_String>(nullptr, L"\t\n"); in SetUp()
78 m_StreamDictObj->SetNewFor<CPDF_String>("key1", L" test dict"); in SetUp()
513 string_array->InsertNewAt<CPDF_String>(i, vals[i], false); in TEST()
640 arr->InsertNewAt<CPDF_String>(6, "", false); in TEST()
641 arr->InsertNewAt<CPDF_String>(7, "It is a test!", false); in TEST()
651 dict_val->SetNewFor<CPDF_String>("key1", "Linda", false); in TEST()
652 dict_val->SetNewFor<CPDF_String>("key2", "Zoe", false); in TEST()
655 stream_dict->SetNewFor<CPDF_String>("key1", "John", false); in TEST()
656 stream_dict->SetNewFor<CPDF_String>("key2", "King", false); in TEST()
[all …]
Dcpdf_object.cpp165 CPDF_String* CPDF_Object::AsString() { in AsString()
169 const CPDF_String* CPDF_Object::AsString() const { in AsString()
Dfpdf_parser_utility_unittest.cpp44 dict->SetNewFor<CPDF_String>("Type", L"foo"); in TEST()
74 dict->SetNewFor<CPDF_String>("f3", L"foo"); in TEST()
Dfpdf_parser_decode_unittest.cpp69 decoders->AddNew<CPDF_String>("FlateEncode", false); in TEST()
89 decoders->AddNew<CPDF_String>("AHx", false); in TEST()
110 decoders->AddNew<CPDF_String>("RL", false); in TEST()
Dcpdf_page_object_avail_unittest.cpp111 "Type", pdfium::MakeRetain<CPDF_String>(nullptr, "Page", false)); in TEST()
116 4, pdfium::MakeRetain<CPDF_String>(nullptr, "Other page data", false), in TEST()
Dcpdf_object_walker_unittest.cpp61 EXPECT_EQ(Walk(pdfium::MakeRetain<CPDF_String>().Get()), "Str"); in TEST()
69 dict->SetFor("1", pdfium::MakeRetain<CPDF_String>()); in TEST()
Dcpdf_security_handler.cpp588 pEncryptDict->SetNewFor<CPDF_String>("O", ByteString(passcode, 32), false); in OnCreateInternal()
601 pEncryptDict->SetNewFor<CPDF_String>("U", ByteString(tempbuf, 32), false); in OnCreateInternal()
619 pEncryptDict->SetNewFor<CPDF_String>("U", ByteString(digest, 32), false); in OnCreateInternal()
665 pEncryptDict->SetNewFor<CPDF_String>(bOwner ? "O" : "U", in AES256_SetPassword()
684 pEncryptDict->SetNewFor<CPDF_String>(bOwner ? "OE" : "UE", in AES256_SetPassword()
716 pEncryptDict->SetNewFor<CPDF_String>("Perms", ByteString(buf1, 16), false); in AES256_SetPerms()
Dcpdf_document_unittest.cpp34 pageNode->SetNewFor<CPDF_String>("Type", "Pages", false); in CreatePageTreeNode()
46 page->SetNewFor<CPDF_String>("Type", "Page", false); in CreateNumberedPage()
/external/pdfium/core/fpdfdoc/
Dcpdf_filespec_unittest.cpp76 auto str_obj = pdfium::MakeRetain<CPDF_String>(nullptr, test_data.input); in TEST()
111 dict_obj->SetNewFor<CPDF_String>(keywords[i], test_data[i].input); in TEST()
116 dict_obj->SetNewFor<CPDF_String>("FS", "URL", false); in TEST()
134 dict_obj->SetNewFor<CPDF_String>("FS", "URL", false); in TEST()
153 auto str_obj = pdfium::MakeRetain<CPDF_String>(nullptr, L"babababa"); in TEST()
208 dict_obj->SetNewFor<CPDF_String>(keys[i], file_name); in TEST()
224 dict_obj->SetNewFor<CPDF_String>("FS", "URL", false); in TEST()
242 dict_obj->SetNewFor<CPDF_String>("UF", L"test.pdf"); in TEST()
Dcpdf_filespec.cpp101 const CPDF_String* pUF = ToString(pDict->GetDirectObjectFor("UF")); in GetFileName()
105 const CPDF_String* pK = in GetFileName()
115 const CPDF_String* pValue = ToString(pDict->GetDirectObjectFor(key)); in GetFileName()
123 } else if (const CPDF_String* pString = m_pObj->AsString()) { in GetFileName()
212 pDict->SetNewFor<CPDF_String>(pdfium::stream::kF, wsStr.ToDefANSI(), false); in SetFileName()
213 pDict->SetNewFor<CPDF_String>("UF", wsStr); in SetFileName()
Dcpdf_nametree.cpp28 pLimits->SetNewAt<CPDF_String>(0, csRight); in GetNodeLimitsMaybeSwap()
29 pLimits->SetNewAt<CPDF_String>(1, csLeft); in GetNodeLimitsMaybeSwap()
104 pLimits->SetNewAt<CPDF_String>(0, csNewLeft); in UpdateNodesAndLimitsUponDeletion()
105 pLimits->SetNewAt<CPDF_String>(1, csNewRight); in UpdateNodesAndLimitsUponDeletion()
143 pLimits->SetNewAt<CPDF_String>(0, csNewLeft); in UpdateNodesAndLimitsUponDeletion()
144 pLimits->SetNewAt<CPDF_String>(1, csNewRight); in UpdateNodesAndLimitsUponDeletion()
351 pFind->InsertNewAt<CPDF_String>(nNameIndex, name); in AddValueAndName()
363 pLimit->SetNewAt<CPDF_String>(0, name); in AddValueAndName()
366 pLimit->SetNewAt<CPDF_String>(1, name); in AddValueAndName()
Dcpdf_nametree_unittest.cpp16 pNames->AddNew<CPDF_String>(key, false); in AddNameKeyValue()
32 pLimits->AddNew<CPDF_String>(least, false); in AddLimitsArray()
33 pLimits->AddNew<CPDF_String>(greatest, false); in AddLimitsArray()
88 pNames->AddNew<CPDF_String>(ByteString(buf), true); in TEST()
Dcpdf_formfield.h25 class CPDF_String; variable
152 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.cpp352 m_pDict->SetNewFor<CPDF_String>(key, csValue); in SetValue()
536 m_pDict->SetNewFor<CPDF_String>(pdfium::form_fields::kV, opt_value); in SetItemSelectionSelected()
544 m_pDict->SetNewFor<CPDF_String>(pdfium::form_fields::kV, opt_value); in SetItemSelectionSelected()
551 pArray->AddNew<CPDF_String>(GetOptionValue(i)); in SetItemSelectionSelected()
581 pArray->AddNew<CPDF_String>(GetOptionValue(i)); in SetItemSelectionUnselected()
627 const CPDF_String* pString = ToString(pOption); in GetOptionText()
Dcpdf_bookmark.cpp31 const CPDF_String* pString = ToString(m_pDict->GetDirectObjectFor("Title")); in GetTitle()
/external/pdfium/fpdfsdk/
Dfpdf_attachment.cpp93 pFile->SetNewFor<CPDF_String>("UF", wsName); in FPDFDoc_AddAttachment()
94 pFile->SetNewFor<CPDF_String>(pdfium::stream::kF, wsName); in FPDFDoc_AddAttachment()
183 pParamsDict->SetNewFor<CPDF_String>(bsKey, bsValue, bEncodedAsHex); in FPDFAttachment_SetStringValue()
203 CPDF_String* stringValue = pParamsDict->GetObjectFor(bsKey)->AsString(); in FPDFAttachment_GetStringValue()
206 value = pdfium::MakeRetain<CPDF_String>(nullptr, encoded, false) in FPDFAttachment_GetStringValue()
240 pParamsDict->SetNewFor<CPDF_String>( in FPDFAttachment_SetFile()
249 pParamsDict->SetNewFor<CPDF_String>( in FPDFAttachment_SetFile()
Dfpdf_doc_unittest.cpp100 bookmarks[1].obj->SetNewFor<CPDF_String>("Title", L"Chapter 1"); in TEST_F()
106 bookmarks[2].obj->SetNewFor<CPDF_String>("Title", L"Chapter 2"); in TEST_F()
144 bookmarks[1].obj->SetNewFor<CPDF_String>("Title", L"Chapter 1"); in TEST_F()
150 bookmarks[2].obj->SetNewFor<CPDF_String>("Title", L"Chapter 2"); in TEST_F()
179 bookmarks[1].obj->SetNewFor<CPDF_String>("Title", L"Chapter 1"); in TEST_F()
185 bookmarks[2].obj->SetNewFor<CPDF_String>("Title", L"Chapter 2"); in TEST_F()
191 bookmarks[3].obj->SetNewFor<CPDF_String>("Title", L"Chapter 3"); in TEST_F()
Dfpdf_save.cpp127 pArray->InsertNewAt<CPDF_String>(iLast, "datasets", false); in SaveXFADocumentData()
147 pArray->InsertNewAt<CPDF_String>(iLast, "form", false); in SaveXFADocumentData()
Dcpdfsdk_baannot.cpp86 pDict->SetNewFor<CPDF_String>(pdfium::annotation::kNM, sName); in SetAnnotName()
107 pDict->SetNewFor<CPDF_String>(pdfium::annotation::kAS, str, false); in SetAppState()
Dfpdf_catalog_unittest.cpp66 m_pRootObj->SetNewFor<CPDF_String>("OTHER_KEY", "other value", false); in TEST_F()

12