Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fpdf_parser_utility.h File Reference

(08e24b2ba6847221abd35e9b994206b764d6b322)

#include <iosfwd>
#include <limits>
#include <optional>
#include <vector>
#include "core/fxcrt/bytestring.h"
#include "core/fxcrt/compiler_specific.h"
#include "core/fxcrt/retain_ptr.h"
Include dependency graph for fpdf_parser_utility.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint8_t GetPDFCharTypeFromArray (uint8_t c)
bool PDFCharIsWhitespace (uint8_t c)
bool PDFCharIsNumeric (uint8_t c)
bool PDFCharIsDelimiter (uint8_t c)
bool PDFCharIsOther (uint8_t c)
bool PDFCharIsLineEnding (uint8_t c)
std::optional< FX_FILESIZEGetHeaderOffset (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]

Function Documentation

◆ GetHeaderOffset()

std::optional< FX_FILESIZE > GetHeaderOffset ( const RetainPtr< IFX_SeekableReadStream > & pFile)

Definition at line 77 of file fpdf_parser_utility.cpp.

◆ GetPDFCharTypeFromArray()

uint8_t GetPDFCharTypeFromArray ( uint8_t c)
inline

Definition at line 27 of file fpdf_parser_utility.h.

References kPDFCharTypes.

Referenced by PDFCharIsDelimiter(), PDFCharIsNumeric(), PDFCharIsOther(), and PDFCharIsWhitespace().

Here is the caller graph for this function:

◆ operator<<()

◆ PDF_NameDecode()

ByteString PDF_NameDecode ( ByteStringView orig)

Definition at line 91 of file fpdf_parser_utility.cpp.

◆ PDF_NameEncode()

ByteString PDF_NameEncode ( const ByteString & orig)

Definition at line 112 of file fpdf_parser_utility.cpp.

Referenced by operator<<(), TEST(), and CPDF_Name::WriteTo().

Here is the caller graph for this function:

◆ PDFCharIsDelimiter()

bool PDFCharIsDelimiter ( uint8_t c)
inline

Definition at line 45 of file fpdf_parser_utility.h.

References GetPDFCharTypeFromArray().

Referenced by CPDF_StreamParser::ParseNextElement().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PDFCharIsLineEnding()

bool PDFCharIsLineEnding ( uint8_t c)
inline

Definition at line 53 of file fpdf_parser_utility.h.

Referenced by A85Decode(), HexDecode(), CPDF_StreamParser::ParseNextElement(), CPDF_SyntaxParser::RecordingToNextWord(), and CPDF_SyntaxParser::ToNextWord().

Here is the caller graph for this function:

◆ PDFCharIsNumeric()

bool PDFCharIsNumeric ( uint8_t c)
inline

Definition at line 41 of file fpdf_parser_utility.h.

References GetPDFCharTypeFromArray().

Referenced by CPDF_StreamParser::ParseNextElement().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PDFCharIsOther()

bool PDFCharIsOther ( uint8_t c)
inline

Definition at line 49 of file fpdf_parser_utility.h.

References GetPDFCharTypeFromArray().

Here is the call graph for this function:

◆ PDFCharIsWhitespace()

bool PDFCharIsWhitespace ( uint8_t c)
inline

Definition at line 37 of file fpdf_parser_utility.h.

References GetPDFCharTypeFromArray().

Referenced by CPDF_StreamParser::ParseNextElement(), CPDF_SyntaxParser::RecordingToNextWord(), and CPDF_SyntaxParser::ToNextWord().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadArrayElementsToVector()

std::vector< float > ReadArrayElementsToVector ( const CPDF_Array * pArray,
size_t nCount )

Definition at line 146 of file fpdf_parser_utility.cpp.

◆ ValidateDictAllResourcesOfType()

bool ValidateDictAllResourcesOfType ( const CPDF_Dictionary * dict,
ByteStringView type )

Definition at line 161 of file fpdf_parser_utility.cpp.

References CPDF_DictionaryLocker::CPDF_DictionaryLocker().

Here is the call graph for this function:

◆ ValidateDictOptionalType()

bool ValidateDictOptionalType ( const CPDF_Dictionary * dict,
ByteStringView type )

Definition at line 180 of file fpdf_parser_utility.cpp.

References CPDF_Dictionary::GetNameFor(), and CPDF_Dictionary::KeyExist().

Here is the call graph for this function:

◆ ValidateDictType()

bool ValidateDictType ( const CPDF_Dictionary * dict,
ByteStringView type )

Definition at line 156 of file fpdf_parser_utility.cpp.

References CPDF_Dictionary::GetNameFor().

Here is the call graph for this function:

◆ ValidateFontResourceDict()

bool ValidateFontResourceDict ( const CPDF_Dictionary * dict)

Definition at line 176 of file fpdf_parser_utility.cpp.

Variable Documentation

◆ kPDFCharTypes

const char kPDFCharTypes
extern

Definition at line 30 of file fpdf_parser_utility.cpp.

Referenced by GetPDFCharTypeFromArray().