2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-05-29 08:20:53 +00:00

spell check

This commit is contained in:
Jay Berkenbilt 2019-08-31 08:43:18 -04:00
parent 00fd9b3e03
commit 0787ec9620
5 changed files with 103 additions and 10 deletions

View File

@ -1,7 +1,7 @@
2019-08-24 Jay Berkenbilt <ejb@ql.org> 2019-08-24 Jay Berkenbilt <ejb@ql.org>
* Add QPDF::userPasswordMatched() and QPDF::ownerPasswordMatched() * Add QPDF::userPasswordMatched() and QPDF::ownerPasswordMatched()
methods so it can be deterined separately whether the supplied methods so it can be determined separately whether the supplied
password matched the user password, the owner password, or both. password matched the user password, the owner password, or both.
Fixes #159. Fixes #159.

View File

@ -179,8 +179,8 @@ namespace QIntC // QIntC = qpdf Integer Conversion
} }
}; };
// Specific converers. The return type of each function must match // Specific converters. The return type of each function must match
// the second template prameter to IntConverter. // the second template parameter to IntConverter.
template <typename T> template <typename T>
char to_char(T const& i) char to_char(T const& i)
{ {

View File

@ -5,9 +5,11 @@ abacc
abc abc
ABCD ABCD
abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnom abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnom
abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnom
abcde abcde
abcdefABCDEF abcdefABCDEF
abcdefghbcdefghicdefghijdefghijkefghijklfghijklmg abcdefghbcdefghicdefghijdefghijkefghijklfghijklmg
abcdefghbcdefghicdefghijdefghijkefghijklfghijklmg
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghi ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghi
ABI ABI
@ -28,6 +30,7 @@ addArrayElement
addChoicesToCompletions addChoicesToCompletions
addContentTokenFilter addContentTokenFilter
addDictionaryMember addDictionaryMember
addExplicitElementsToList
addOptionsToCompletions addOptionsToCompletions
addPage addPage
addPageAt addPageAt
@ -76,6 +79,7 @@ apexcovantage
api api
APIs APIs
apis apis
appdir
appearancestate appearancestate
appendable appendable
appendItem appendItem
@ -83,6 +87,7 @@ appendString
appian appian
AppImage AppImage
appimage appimage
appspot
arandom arandom
arg arg
argc argc
@ -92,6 +97,7 @@ argCoalesceContents
argCollate argCollate
argCompletionBash argCompletionBash
argCompletionZsh argCompletionZsh
argCompressionLevel
argCompressStreams argCompressStreams
argCopyEncryption argCopyEncryption
argCopyright argCopyright
@ -143,6 +149,7 @@ argPreserveUnreferencedResources
argProgress argProgress
argQdf argQdf
argRawStreamData argRawStreamData
argRecompressFlate
argRemovePageLabels argRemovePageLabels
argRotate argRotate
args args
@ -233,6 +240,7 @@ BBox
bbox bbox
bc bc
beb beb
BeforeQuack
Berkenbilt Berkenbilt
betweenTokens betweenTokens
bf bf
@ -283,6 +291,7 @@ callbacks
callHello callHello
CAPTURECOUNT CAPTURECOUNT
CARON CARON
cassert
cb cb
cbc cbc
cc cc
@ -345,6 +354,7 @@ CLI
ClosedFileInputSource ClosedFileInputSource
CloseHandle CloseHandle
closeObject closeObject
clusterfuzz
cmath cmath
cmd cmd
cmyk cmyk
@ -371,6 +381,7 @@ conftest
const const
ContentNormalizer ContentNormalizer
ContentProvider ContentProvider
contentSize
contrib contrib
convertIIDict convertIIDict
CopiedStreamDataProvider CopiedStreamDataProvider
@ -494,12 +505,14 @@ DLLs
docbook docbook
DOCBOOKX DOCBOOKX
docdir docdir
doChecks
DocOpen DocOpen
DOCTYPE DOCTYPE
DocumentHelper DocumentHelper
doFinalChecks doFinalChecks
DOTLESS DOTLESS
doubleBoxSize doubleBoxSize
doWrite
doWriteSetup doWriteSetup
Doxygen Doxygen
dp dp
@ -548,6 +561,7 @@ embeddedFiles
emc emc
emptyPDF emptyPDF
en en
enc
encodable encodable
encodeDataIncrementally encodeDataIncrementally
encodeFile encodeFile
@ -586,6 +600,7 @@ eraseItem
Erdelsky's Erdelsky's
errno errno
erroffset erroffset
errorMessageID
errptr errptr
esize esize
esses esses
@ -594,6 +609,7 @@ exc
exe exe
exp exp
expectInlineImage expectInlineImage
expr
ExtensionLevel ExtensionLevel
extern extern
externalize externalize
@ -653,6 +669,7 @@ fixDanglingReferences
fl fl
flarp flarp
flate flate
Flate's
FlateDecode FlateDecode
flattenAnnotations flattenAnnotations
flattenAnnotationsForPage flattenAnnotationsForPage
@ -671,6 +688,7 @@ ForceR
ForceV ForceV
foreach foreach
ForeignStreamData ForeignStreamData
FormatMessageA
fp fp
fprintf fprintf
fR fR
@ -689,6 +707,9 @@ fullinfo
fullname fullname
fullpad fullpad
func func
fuzzer
fuzzers
FuzzHelper
fv fv
fvisibility fvisibility
fweimer fweimer
@ -729,6 +750,7 @@ getAsMatrix
getAsVector getAsVector
getAttribute getAttribute
getBits getBits
getBitsInt
getBitsSigned getBitsSigned
getBoolValue getBoolValue
getBuffer getBuffer
@ -747,6 +769,7 @@ getDest
getDestPage getDestPage
getDict getDict
getDictAsMap getDictAsMap
getElementsForShallowCopy
getEncryptionKey getEncryptionKey
getEncryptMetadata getEncryptMetadata
getenv getenv
@ -774,12 +797,15 @@ getGeneration
getHeight getHeight
getHexDigest getHexDigest
getId getId
getIdentifier
getInheritableFieldValue getInheritableFieldValue
getInheritableFieldValueAsName getInheritableFieldValueAsName
getInheritableFieldValueAsString getInheritableFieldValueAsString
getInlineImageValue getInlineImageValue
getInstance getInstance
getIntValue getIntValue
getIntValueAsInt
getIntVauleAsInt
getItem getItem
getJSON getJSON
getKey getKey
@ -837,6 +863,7 @@ getPDFVersion
getPerms getPerms
getPointer getPointer
getQPDF getQPDF
getQpdf
getQuadding getQuadding
getR getR
getRandomDataProvider getRandomDataProvider
@ -869,6 +896,8 @@ getTypeCode
getTypeName getTypeName
getU getU
getUE getUE
getUIntValue
getUIntValueAsUInt
getUncompressedObject getUncompressedObject
getUniqueId getUniqueId
getUniqueResourceName getUniqueResourceName
@ -882,6 +911,7 @@ getWarnings
getWhoami getWhoami
getWidgetAnnotationsForPage getWidgetAnnotationsForPage
getWidth getWidth
getWriter
GG GG
ghostscript ghostscript
GhostScript GhostScript
@ -892,10 +922,13 @@ glerbl
glibc glibc
gm gm
gmail gmail
gmon
GNUC GNUC
gnuwin gnuwin
googleapis
GoTo GoTo
gpg gpg
gprof
grayscale grayscale
grep grep
gsdnld gsdnld
@ -938,6 +971,7 @@ HGeneric
hh hh
HighPart HighPart
hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstn hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstn
hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstn
hlen hlen
Hoffmann Hoffmann
HOi HOi
@ -1003,6 +1037,7 @@ inlineimage
InlineImageTracker InlineImageTracker
ino ino
inode inode
inParse
inpdf inpdf
inputLen inputLen
InputSource InputSource
@ -1013,6 +1048,7 @@ insertPageobjToPage
insertXrefEntry insertXrefEntry
inst inst
int int
IntConverter
interoperate interoperate
interpretCF interpretCF
interpretR interpretR
@ -1038,6 +1074,7 @@ isDataModified
isDelimiter isDelimiter
isDictionary isDictionary
isdigit isdigit
isDirectNull
isEncrypted isEncrypted
isIgnorable isIgnorable
isIndirect isIndirect
@ -1124,6 +1161,8 @@ lexer
LF LF
lhs lhs
libclang libclang
libfuzzer
libFuzzer
libgcc libgcc
libjpeg libjpeg
LibJpeg LibJpeg
@ -1156,13 +1195,18 @@ listitem
ljpeg ljpeg
ll ll
lld lld
LLU
llvm llvm
LLVMFuzzerTestOneInput
llx llx
lly lly
LocalFree
longjmp longjmp
longlong
lookup lookup
lossy lossy
LowPart LowPart
LPSTR
lqpdf lqpdf
lsb lsb
lt lt
@ -1188,6 +1232,7 @@ makeDirectInternal
Makefile Makefile
makeIndirectObject makeIndirectObject
makeInt makeInt
MAKELANGID
makeNull makeNull
makeNumber makeNumber
makePipeline makePipeline
@ -1214,6 +1259,7 @@ memmove
memset memset
merchantability merchantability
mergeResources mergeResources
messageBuffer
metadata metadata
mgr mgr
MILLE MILLE
@ -1232,6 +1278,7 @@ monoseq
mr mr
MSC MSC
msg msg
msgid
msvc msvc
MSVC's MSVC's
msys msys
@ -1293,6 +1340,7 @@ nmatches
nMatches nMatches
NoBackref NoBackref
nobjects nobjects
nocase
NOMATCH NOMATCH
NOMEMORY NOMEMORY
NONINFRINGEMENT NONINFRINGEMENT
@ -1321,6 +1369,7 @@ NTE
ntoh ntoh
ntotal ntotal
NUL NUL
nullptr
num num
numericValue numericValue
numrange numrange
@ -1378,7 +1427,7 @@ org
orig orig
orred orred
os os
OSS oss
ostream ostream
ostringstream ostringstream
ot ot
@ -1392,12 +1441,14 @@ OUTDOC
outfile outfile
outfilename outfilename
outlength outlength
outname
outpdf outpdf
outpdfw outpdfw
outprefix outprefix
outputLengthNextN outputLengthNextN
ovecsize ovecsize
ovector ovector
ownerPasswordMatched
pacman pacman
padLen padLen
Paeth Paeth
@ -1420,6 +1471,7 @@ params
parms parms
parsecontent parsecontent
parseContentStream parseContentStream
ParseGuard
parseInternal parseInternal
parseNumrange parseNumrange
parseOptions parseOptions
@ -1457,6 +1509,7 @@ performant
perl perl
persistAcrossFinish persistAcrossFinish
Pfeifle Pfeifle
pg
ph ph
phe phe
php php
@ -1464,8 +1517,11 @@ pikepdf
pipeContentStreams pipeContentStreams
pipeForeignStreamData pipeForeignStreamData
PipelineAccessor PipelineAccessor
PipelinePopper
PipelinePopper's
pipePageContents pipePageContents
pipeStreamData pipeStreamData
pipeStreamData's
pipeStringAndFinish pipeStringAndFinish
Pkey Pkey
pkg pkg
@ -1487,7 +1543,7 @@ popup
pornin pornin
pos pos
POSIX POSIX
PP pp
PPA PPA
pr pr
pragma pragma
@ -1512,6 +1568,7 @@ processXRefStream
procset procset
ProcSet ProcSet
procsets procsets
progname
programlisting programlisting
programmatically programmatically
ProgressReporter ProgressReporter
@ -1527,6 +1584,7 @@ pt
ptemp ptemp
pthread pthread
ptr ptr
pubkey
pushDiscardFilter pushDiscardFilter
pushEncryptionFilter pushEncryptionFilter
pushInheritedAttributesToPage pushInheritedAttributesToPage
@ -1536,6 +1594,7 @@ pushOutlinesToPart
pushPipeline pushPipeline
PUTU PUTU
PWD PWD
py
pypi pypi
qarray qarray
QArray QArray
@ -1545,6 +1604,7 @@ QDFWriter
qdict qdict
QDict QDict
QEXC QEXC
QIntC
ql ql
qnumbers qnumbers
QNumbers QNumbers
@ -1608,6 +1668,7 @@ quoteright
quotesinglbase quotesinglbase
QUtil QUtil
qutil qutil
qw
qwert qwert
rand rand
RandomDataProvider RandomDataProvider
@ -1664,6 +1725,7 @@ replaceObject
replaceOrRemoveKey replaceOrRemoveKey
replaceReserved replaceReserved
replaceStreamData replaceStreamData
repo
reportProgress reportProgress
repos repos
requiredChoices requiredChoices
@ -1680,6 +1742,7 @@ retargeted
retested retested
reverseResolved reverseResolved
rf rf
rfc
rfont rfont
rg rg
rgb rgb
@ -1713,6 +1776,7 @@ runtest
Sahil Sahil
sahilarora sahilarora
sAlT sAlT
sanitizers
saphir saphir
sarray sarray
SASLprep SASLprep
@ -1726,15 +1790,18 @@ se
SecureRandomDataProvider SecureRandomDataProvider
sed sed
seekable seekable
segfaulting
sendNextCode sendNextCode
sep sep
seq seq
serif serif
setArrayFromVector setArrayFromVector
setArrayItem setArrayItem
setAt
setAttemptRecovery setAttemptRecovery
setbase setbase
setCheckBoxValue setCheckBoxValue
setCompressionLevel
setCompressStreams setCompressStreams
setContentNormalization setContentNormalization
setDataKey setDataKey
@ -1783,6 +1850,7 @@ setQDFMode
setR setR
setRadioButtonValue setRadioButtonValue
setRandomDataProvider setRandomDataProvider
setRecompressFlate
setStaticAesIV setStaticAesIV
setStaticID setStaticID
setStreamDataMode setStreamDataMode
@ -1808,6 +1876,7 @@ softlink
solidus solidus
sourceforge sourceforge
SourceForge SourceForge
SparseOHArray
sph sph
sphlib sphlib
sprintf sprintf
@ -1865,14 +1934,19 @@ strtod
strtoi strtoi
strtol strtol
strtoll strtoll
strtoui
strtoull
struct struct
stylesheet stylesheet
stylesheets stylesheets
subclassed
subclasses subclasses
subclassing
subdictionaries subdictionaries
subdictionary subdictionary
SubFilter SubFilter
SubFilters SubFilters
SUBLANG
sublicense sublicense
subparsers subparsers
Subramanyam Subramanyam
@ -1897,11 +1971,14 @@ tarball
TARNAME TARNAME
tbuf tbuf
tc tc
Td td
Te Te
TerminateParsing TerminateParsing
terminateParsing terminateParsing
testOutlines
testPages
TESTSUITE TESTSUITE
testWrite
tf tf
tff tff
TfFinder TfFinder
@ -1918,11 +1995,13 @@ Tm
tmatrix tmatrix
tmp tmp
tnum tnum
To's
Tobias Tobias
tobj tobj
tobjid tobjid
TODO TODO
toffset toffset
toI
tok tok
TokenFilter TokenFilter
TokenFilters TokenFilters
@ -1931,8 +2010,10 @@ tokenized
tokenizer tokenizer
tokenizing tokenizing
tokenTypeName tokenTypeName
toO
toolchain toolchain
toolchains toolchains
toS
toupper toupper
toUTF toUTF
tp tp
@ -1953,21 +2034,26 @@ Tval
tx tx
txt txt
ty ty
typeinfo
typename typename
typeWarning typeWarning
ubuntu ubuntu
uc uc
uchar
udata udata
UE UE
uHHHH uHHHH
uinow uinow
uint uint
uiter uiter
UL ul
ULARGE ULARGE
ulink ulink
ull
uLong uLong
ULONGLONG ulong
ulonglong
umask
uncompresesd uncompresesd
uncompress uncompress
uncompressing uncompressing
@ -1980,6 +2066,7 @@ understandDecodeParams
unencrypted unencrypted
unfilterable unfilterable
ungetc ungetc
unhandled
unicode unicode
uninstalled uninstalled
unistd unistd
@ -2010,9 +2097,11 @@ ury
usageExit usageExit
UseAes UseAes
UseOutlines UseOutlines
userPasswordMatched
UserUnit UserUnit
useStaticIV useStaticIV
useZeroIV useZeroIV
ushort
USLetter USLetter
usr usr
utf utf
@ -2068,6 +2157,7 @@ wrapInArray
writeAppearance writeAppearance
writeBinary writeBinary
writeBits writeBits
writeBitsInt
writeBitsSigned writeBitsSigned
writeBuffer writeBuffer
writeEncryptionDictionary writeEncryptionDictionary
@ -2098,6 +2188,7 @@ xA
xa xa
xABUL xABUL
xb xb
xbc
xbd xbd
xbebfbc xbebfbc
xbf xbf
@ -2115,6 +2206,7 @@ xefcdab
xF xF
xf xf
xFC xFC
xfc
xfcefa xfcefa
xfd xfd
xfde xfde
@ -2161,6 +2253,7 @@ zarko
Zarko's Zarko's
zcaron zcaron
zdata zdata
zdenop
Zeroize Zeroize
zeroizing zeroizing
zfree zfree

View File

@ -32,7 +32,7 @@ int main()
uint64_t ul1 = 1099511627776LL; // Too big for 32-bit uint64_t ul1 = 1099511627776LL; // Too big for 32-bit
uint64_t ul2 = 12345; // Fits into 32-bit uint64_t ul2 = 12345; // Fits into 32-bit
int32_t i2 = 81; // Fits in char and uchar int32_t i2 = 81; // Fits in char and uchar
char c1 = '\xf7'; // Signed vaule when char char c1 = '\xf7'; // Signed value when char
// Verify i1 and u1 have same bit pattern // Verify i1 and u1 have same bit pattern
assert(static_cast<uint32_t>(i1) == u1); assert(static_cast<uint32_t>(i1) == u1);

View File

@ -18,7 +18,7 @@ void usage()
<< " zlib compression level from" << std::endl << " zlib compression level from" << std::endl
<< "1 to 9 where lower numbers are faster and" << "1 to 9 where lower numbers are faster and"
<< " less compressed and higher" << std::endl << " less compressed and higher" << std::endl
<< "numbers are slower and more compresed" << "numbers are slower and more compressed"
<< std::endl; << std::endl;
exit(2); exit(2);
} }