Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "core/fpdfapi/parser/fpdf_parser_utility.h"
#include <ostream>
#include <utility>
#include "core/fpdfapi/parser/cpdf_array.h"
#include "core/fpdfapi/parser/cpdf_boolean.h"
#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fpdfapi/parser/cpdf_number.h"
#include "core/fpdfapi/parser/cpdf_reference.h"
#include "core/fpdfapi/parser/cpdf_stream.h"
#include "core/fpdfapi/parser/cpdf_stream_acc.h"
#include "core/fpdfapi/parser/cpdf_string.h"
#include "core/fpdfapi/parser/fpdf_parser_decode.h"
#include "core/fxcrt/fx_extension.h"
#include "core/fxcrt/fx_stream.h"
#include "core/fxcrt/span_util.h"
#include "third_party/base/check.h"
Go to the source code of this file.
Functions | |
absl::optional< FX_FILESIZE > | GetHeaderOffset (const RetainPtr< IFX_SeekableReadStream > &pFile) |
ByteString | PDF_NameDecode (ByteStringView orig) |
ByteString | PDF_NameEncode (const ByteString &orig) |
std::vector< float > | ReadArrayElementsToVector (const CPDF_Array *pArray, size_t nCount) |
bool | ValidateDictType (const CPDF_Dictionary *dict, ByteStringView type) |
bool | ValidateDictAllResourcesOfType (const CPDF_Dictionary *dict, ByteStringView type) |
bool | ValidateFontResourceDict (const CPDF_Dictionary *dict) |
bool | ValidateDictOptionalType (const CPDF_Dictionary *dict, ByteStringView type) |
std::ostream & | operator<< (std::ostream &buf, const CPDF_Object *pObj) |
Variables | |
const char | kPDFCharTypes [256] |
absl::optional< FX_FILESIZE > GetHeaderOffset | ( | const RetainPtr< IFX_SeekableReadStream > & | pFile | ) |
Definition at line 78 of file fpdf_parser_utility.cpp.
std::ostream & operator<< | ( | std::ostream & | buf, |
const CPDF_Object * | pObj ) |
Definition at line 191 of file fpdf_parser_utility.cpp.
References CPDF_DictionaryLocker::CPDF_DictionaryLocker(), CPDF_Object::AsArray(), CPDF_Object::AsDictionary(), CPDF_Object::AsReference(), CPDF_Object::AsString(), CPDF_String::EncodeString(), CPDF_Reference::GetRefObjNum(), CPDF_Object::GetString(), CPDF_Object::GetType(), CPDF_Object::kArray, CPDF_Object::kBoolean, CPDF_Object::kDictionary, CPDF_Object::kName, CPDF_Object::kNullobj, CPDF_Object::kNumber, CPDF_Object::kReference, CPDF_Object::kStream, CPDF_Object::kString, and PDF_NameEncode().
ByteString PDF_NameDecode | ( | ByteStringView | orig | ) |
Definition at line 92 of file fpdf_parser_utility.cpp.
ByteString PDF_NameEncode | ( | const ByteString & | orig | ) |
Definition at line 113 of file fpdf_parser_utility.cpp.
References fxcrt::ByteString::c_str(), PDFCharIsDelimiter(), and PDFCharIsWhitespace().
Referenced by operator<<(), TEST(), and CPDF_Name::WriteTo().
std::vector< float > ReadArrayElementsToVector | ( | const CPDF_Array * | pArray, |
size_t | nCount ) |
Definition at line 151 of file fpdf_parser_utility.cpp.
bool ValidateDictAllResourcesOfType | ( | const CPDF_Dictionary * | dict, |
ByteStringView | type ) |
Definition at line 166 of file fpdf_parser_utility.cpp.
References CPDF_DictionaryLocker::CPDF_DictionaryLocker().
bool ValidateDictOptionalType | ( | const CPDF_Dictionary * | dict, |
ByteStringView | type ) |
Definition at line 185 of file fpdf_parser_utility.cpp.
References CPDF_Dictionary::GetNameFor(), and CPDF_Dictionary::KeyExist().
bool ValidateDictType | ( | const CPDF_Dictionary * | dict, |
ByteStringView | type ) |
Definition at line 161 of file fpdf_parser_utility.cpp.
References CPDF_Dictionary::GetNameFor().
bool ValidateFontResourceDict | ( | const CPDF_Dictionary * | dict | ) |
Definition at line 181 of file fpdf_parser_utility.cpp.
const char kPDFCharTypes[256] |
Definition at line 31 of file fpdf_parser_utility.cpp.
Referenced by PDFCharIsDelimiter(), PDFCharIsNumeric(), PDFCharIsOther(), and PDFCharIsWhitespace().