Home
last modified time | relevance | path

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

12

/external/pdfium/core/fpdfapi/parser/
Dcpdf_string.cpp15 CPDF_String::CPDF_String() : m_bHex(false) {} in CPDF_String() function in CPDF_String
17 CPDF_String::CPDF_String(WeakPtr<ByteStringPool> pPool, in CPDF_String() function in CPDF_String
25 CPDF_String::CPDF_String(WeakPtr<ByteStringPool> pPool, const WideString& str) in CPDF_String() function in CPDF_String
31 CPDF_String::~CPDF_String() {} in ~CPDF_String()
33 CPDF_Object::Type CPDF_String::GetType() const { in GetType()
37 std::unique_ptr<CPDF_Object> CPDF_String::Clone() const { in Clone()
38 auto pRet = pdfium::MakeUnique<CPDF_String>(); in Clone()
44 ByteString CPDF_String::GetString() const { in GetString()
48 void CPDF_String::SetString(const ByteString& str) { in SetString()
52 bool CPDF_String::IsString() const { in IsString()
[all …]
Dcpdf_string.h18 class CPDF_String : public CPDF_Object {
20 CPDF_String();
21 CPDF_String(WeakPtr<ByteStringPool> pPool, const ByteString& str, bool bHex);
22 CPDF_String(WeakPtr<ByteStringPool> pPool, const WideString& str);
23 ~CPDF_String() override;
32 CPDF_String* AsString() override;
33 const CPDF_String* AsString() const override;
43 inline CPDF_String* ToString(CPDF_Object* obj) { in ToString()
47 inline const CPDF_String* ToString(const CPDF_Object* obj) { in ToString()
Dcpdf_object.h25 class CPDF_String; variable
92 virtual CPDF_String* AsString();
93 virtual const CPDF_String* AsString() const;
125 std::is_same<T, CPDF_String>::value;
Dcpdf_object_unittest.cpp55 CPDF_String* str_reg_obj = new CPDF_String(nullptr, L"A simple test"); in SetUp()
56 CPDF_String* str_spec_obj = new CPDF_String(nullptr, L"\t\n"); in SetUp()
74 m_StreamDictObj->SetNewFor<CPDF_String>("key1", L" test dict"); in SetUp()
494 string_array->InsertNewAt<CPDF_String>(i, vals[i], false); in TEST()
621 arr->InsertNewAt<CPDF_String>(6, "", false); in TEST()
622 arr->InsertNewAt<CPDF_String>(7, "It is a test!", false); in TEST()
632 dict_val->SetNewFor<CPDF_String>("key1", "Linda", false); in TEST()
633 dict_val->SetNewFor<CPDF_String>("key2", "Zoe", false); in TEST()
636 stream_dict->SetNewFor<CPDF_String>("key1", "John", false); in TEST()
637 stream_dict->SetNewFor<CPDF_String>("key2", "King", false); in TEST()
[all …]
Dcpdf_object_avail_unittest.cpp133 holder.AddObject(1, pdfium::MakeUnique<CPDF_String>(nullptr, "string", false), in TEST()
146 holder.AddObject(2, pdfium::MakeUnique<CPDF_String>(nullptr, "string", false), in TEST()
259 pdfium::MakeUnique<CPDF_String>(nullptr, "Not available string", false), in TEST()
278 3, pdfium::MakeUnique<CPDF_String>(nullptr, "Exclude me", false), in TEST()
287 pdfium::MakeUnique<CPDF_String>(nullptr, "Not available string", false), in TEST()
317 holder.AddObject(1, pdfium::MakeUnique<CPDF_String>(nullptr, "string", false), in TEST()
339 holder.AddObject(2, pdfium::MakeUnique<CPDF_String>(nullptr, "Data", false), in TEST()
Dcpdf_object.cpp158 CPDF_String* CPDF_Object::AsString() { in AsString()
162 const CPDF_String* CPDF_Object::AsString() const { in AsString()
Dcpdf_page_object_avail_unittest.cpp113 "Type", pdfium::MakeUnique<CPDF_String>(nullptr, "Page", false)); in TEST()
118 4, pdfium::MakeUnique<CPDF_String>(nullptr, "Other page data", false), in TEST()
Dcpdf_security_handler.cpp573 pEncryptDict->SetNewFor<CPDF_String>("O", ByteString(passcode, 32), false); in OnCreateInternal()
587 pEncryptDict->SetNewFor<CPDF_String>("U", ByteString(tempbuf, 32), false); in OnCreateInternal()
606 pEncryptDict->SetNewFor<CPDF_String>("U", ByteString(digest, 32), false); in OnCreateInternal()
653 pEncryptDict->SetNewFor<CPDF_String>(bOwner ? "O" : "U", in AES256_SetPassword()
674 pEncryptDict->SetNewFor<CPDF_String>(bOwner ? "OE" : "UE", in AES256_SetPassword()
706 pEncryptDict->SetNewFor<CPDF_String>("Perms", ByteString(buf1, 16), false); in AES256_SetPerms()
Dcpdf_object_walker_unittest.cpp61 EXPECT_EQ(Walk(pdfium::MakeUnique<CPDF_String>().get()), "Str"); in TEST()
69 dict->SetFor("1", pdfium::MakeUnique<CPDF_String>()); in TEST()
Dcpdf_document_unittest.cpp33 pageNode->SetNewFor<CPDF_String>("Type", "Pages", false); in CreatePageTreeNode()
45 page->SetNewFor<CPDF_String>("Type", "Page", false); in CreateNumberedPage()
/external/pdfium/core/fpdfdoc/
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()
363 pFind->InsertNewAt<CPDF_String>(nNameIndex, name); in AddValueAndName()
375 pLimit->SetNewAt<CPDF_String>(0, name); in AddValueAndName()
378 pLimit->SetNewAt<CPDF_String>(1, name); in AddValueAndName()
Dcpdf_filespec_unittest.cpp74 auto str_obj = pdfium::MakeUnique<CPDF_String>(nullptr, test_data.input); in TEST()
109 dict_obj->SetNewFor<CPDF_String>(keywords[i], test_data[i].input); in TEST()
114 dict_obj->SetNewFor<CPDF_String>("FS", "URL", false); in TEST()
140 auto str_obj = pdfium::MakeUnique<CPDF_String>(nullptr, L"babababa"); in TEST()
195 dict_obj->SetNewFor<CPDF_String>(keys[i], file_name); in TEST()
211 dict_obj->SetNewFor<CPDF_String>("FS", "URL", false); in TEST()
229 dict_obj->SetNewFor<CPDF_String>("UF", L"test.pdf"); in TEST()
Dcpdf_formfield.cpp362 m_pDict->SetNewFor<CPDF_String>(key, bsEncodeText, false); in SetValue()
364 m_pDict->SetNewFor<CPDF_String>("RV", bsEncodeText, false); in SetValue()
367 m_pDict->SetNewFor<CPDF_String>(key, PDF_EncodeText(csValue), false); in SetValue()
544 m_pDict->SetNewFor<CPDF_String>("V", PDF_EncodeText(opt_value), false); in SetItemSelection()
550 pArray->AddNew<CPDF_String>(PDF_EncodeText(opt_value), false); in SetItemSelection()
555 m_pDict->SetNewFor<CPDF_String>("V", PDF_EncodeText(opt_value), false); in SetItemSelection()
572 pArray->AddNew<CPDF_String>(PDF_EncodeText(opt_value), false); in SetItemSelection()
628 CPDF_String* pString = ToString(pOption); in GetOptionText()
673 pOpt->AddNew<CPDF_String>(csStr, false); in InsertOption()
676 pOpt->InsertNewAt<CPDF_String>(index, csStr, false); in InsertOption()
Dcpdf_nametree_unittest.cpp15 pNames->AddNew<CPDF_String>(key, false); in AddNameKeyValue()
31 pLimits->AddNew<CPDF_String>(least, false); in AddLimitsArray()
32 pLimits->AddNew<CPDF_String>(greatest, false); in AddLimitsArray()
87 pNames->AddNew<CPDF_String>(ByteString(buf), true); in TEST()
Dcpdf_annotlist.cpp47 pAnnotDict->SetNewFor<CPDF_String>("T", pParentDict->GetStringFor("T"), in CreatePopupAnnot()
49 pAnnotDict->SetNewFor<CPDF_String>("Contents", sContents.UTF8Encode(), false); in CreatePopupAnnot()
114 pAnnotDict->SetNewFor<CPDF_String>("AS", pParentDict->GetStringFor("AS"), in GenerateAP()
Dcpdf_formfield.h80 class CPDF_String; variable
196 int FindListSel(CPDF_String* str);
Dcpdf_filespec.cpp190 pDict->SetNewFor<CPDF_String>("F", ByteString::FromUnicode(wsStr), false); in SetFileName()
191 pDict->SetNewFor<CPDF_String>("UF", PDF_EncodeText(wsStr), false); in SetFileName()
Dcpdf_bookmark.cpp47 CPDF_String* pString = ToString(m_pDict->GetDirectObjectFor("Title")); in GetTitle()
Dcpdf_interform.cpp98 pFormDict->SetNewFor<CPDF_String>("DA", csDA, false); in InitDict()
1126 pMainDict->SetNewFor<CPDF_String>( in ExportToFDF()
1128 pMainDict->SetNewFor<CPDF_String>("UF", PDF_EncodeText(wsFilePath), in ExportToFDF()
1160 pFieldDict->SetNewFor<CPDF_String>("T", fullname); in ExportToFDF()
1167 pFieldDict->SetNewFor<CPDF_String>("V", csBExport, false); in ExportToFDF()
/external/pdfium/fpdfsdk/
Dfpdfattachment.cpp88 pFile->SetNewFor<CPDF_String>("UF", wsName); in FPDFDoc_AddAttachment()
89 pFile->SetNewFor<CPDF_String>("F", wsName); in FPDFDoc_AddAttachment()
179 pParamsDict->SetNewFor<CPDF_String>(bsKey, bsValue, bEncodedAsHex); in FPDFAttachment_SetStringValue()
199 CPDF_String* stringValue = pParamsDict->GetObjectFor(bsKey)->AsString(); in FPDFAttachment_GetStringValue()
202 value = CPDF_String(nullptr, encoded, false).GetUnicodeText(); in FPDFAttachment_GetStringValue()
234 pParamsDict->SetNewFor<CPDF_String>( in FPDFAttachment_SetFile()
243 pParamsDict->SetNewFor<CPDF_String>( in FPDFAttachment_SetFile()
Dfpdfdoc_unittest.cpp118 bookmarks[1].obj->SetNewFor<CPDF_String>("Title", L"Chapter 1"); in TEST_F()
124 bookmarks[2].obj->SetNewFor<CPDF_String>("Title", L"Chapter 2"); in TEST_F()
161 bookmarks[1].obj->SetNewFor<CPDF_String>("Title", L"Chapter 1"); in TEST_F()
167 bookmarks[2].obj->SetNewFor<CPDF_String>("Title", L"Chapter 2"); in TEST_F()
196 bookmarks[1].obj->SetNewFor<CPDF_String>("Title", L"Chapter 1"); in TEST_F()
202 bookmarks[2].obj->SetNewFor<CPDF_String>("Title", L"Chapter 2"); in TEST_F()
208 bookmarks[3].obj->SetNewFor<CPDF_String>("Title", L"Chapter 3"); in TEST_F()
Dcpdfsdk_baannot.cpp108 m_pAnnot->GetAnnotDict()->SetNewFor<CPDF_String>( in SetContents()
121 m_pAnnot->GetAnnotDict()->SetNewFor<CPDF_String>( in SetAnnotName()
136 m_pAnnot->GetAnnotDict()->SetNewFor<CPDF_String>("M", str, false); in SetModifiedDate()
160 m_pAnnot->GetAnnotDict()->SetNewFor<CPDF_String>("AS", str, false); in SetAppState()
Dfpdfsave.cpp159 pArray->InsertNewAt<CPDF_String>(iLast, "datasets", false); in SaveXFADocumentData()
185 pArray->InsertNewAt<CPDF_String>(iLast, "form", false); in SaveXFADocumentData()
Dfpdfcatalog_unittest.cpp80 m_pRootObj->SetNewFor<CPDF_String>("OTHER_KEY", "other value", false); in TEST_F()
Dfpdfeditpage.cpp118 pInfoDict->SetNewFor<CPDF_String>("CreationDate", DateStr, false); in FPDF_CreateNewDocument()
119 pInfoDict->SetNewFor<CPDF_String>("Creator", L"PDFium"); in FPDF_CreateNewDocument()

12