summaryrefslogtreecommitdiffstats
path: root/libtests
AgeCommit message (Collapse)Author
2023-04-01Change sparse_array test to test sparse QPDF_Arraysm-holger
2023-03-08Add new procedure QUtil::read_file_into_stringm-holger
2023-02-04In JSONParser::getToken handle structural and space chars earlym-holger
2023-02-04In JSONParser::getToken handle legal control chars earlym-holger
Also, reject them in strings.
2023-02-04In JSONParser::getToken reject illegal control charactersm-holger
2023-02-04In JSONParser::handleToken simplify setting of start and endm-holger
2023-02-01Refactor end of input handling in JSONParserm-holger
2023-02-01In JSONParser add lex_state ls_number_e_signm-holger
2023-02-01In JSONParser add lex_state ls_number_pointm-holger
Also. remove '.' as starting char in lsTop.
2023-02-01In JSONParser add lex_state ls_number_leading_zerom-holger
2023-02-01In JSONParser add lex_state ls_number_minusm-holger
2022-11-25Code formatting updatesJay Berkenbilt
2022-11-20Add methods QPDFTokenizer::Token::isWordm-holger
2022-11-14Fix stray formatting errorm-holger
2022-09-26Fix edge case in character encoding (fixes #778)Jay Berkenbilt
Avoid representing as PDF Doc encoding any string whose PDF Doc encoding representation starts with a UTF-16 or UTF-8 marker.
2022-09-21Replace calls to QUtil::int_to_string with std::to_stringm-holger
2022-09-09Make QPDFLogger() private and provide create methodJay Berkenbilt
2022-09-08Switch user-supplied functions in C API to return intJay Berkenbilt
2022-09-08Add ability to initialize Pl_Function with a C-style functionJay Berkenbilt
2022-09-05Take advantage of unique_ptr and move construction for BufferJames R. Barlow
Since Buffer has always implemented its copy constructor with a deep copy, its Members object will never have multiple owners. Change to unique_ptr. Also implement move constructors for Buffer, since there may be cases where a deep copy is not needed.
2022-08-31Add QUtil::get_max_memory_usage for testingJay Berkenbilt
2022-07-24JSON schema: support multi-element array validationJay Berkenbilt
2022-07-24JSON schema -- accept single item in place of arrayJay Berkenbilt
When the schema wants a variable-length array, allow a single item as well as allowing an array.
2022-06-25Reformat codeJay Berkenbilt
2022-06-19Add Pl_Function -- a generic function pipelineJay Berkenbilt
2022-06-19Add C API to QPDFLoggerJay Berkenbilt
2022-06-18Add and test QPDFLogger classJay Berkenbilt
2022-05-31Add conversions to ISO-8601 date formatJay Berkenbilt
2022-05-21Format codeJay Berkenbilt
2022-05-21Replace std::regex with validators for better performanceJay Berkenbilt
2022-05-20JSON: detect duplicate dictionary keys while parsingJay Berkenbilt
2022-05-20JSON fix: correctly parse UTF-16 surrogate pairsJay Berkenbilt
2022-05-20Back out fluent QPDFObjectHandle methods. Keep the andGet methods.Jay Berkenbilt
I decided these were confusing and inconsistent with how JSON works. They muddle the API rather than improving it.
2022-05-16Add QUtil::is_long_longJay Berkenbilt
2022-05-14JSON reactor: improve handling of nested containersJay Berkenbilt
Call the parent container's item method before calling the child item's start method so we can easily know the current nesting level when nested items are added.
2022-05-07Prepare code for JSON v2Jay Berkenbilt
Update getJSON() methods and calls to them
2022-05-07JSON: add blob type that generates base64-encoded binary dataJay Berkenbilt
2022-05-04Change JSON parser to parse from an InputSourceJay Berkenbilt
2022-05-04Add new FileInputSource constructorsJay Berkenbilt
2022-05-04Add new Pl_OStream PipelineJay Berkenbilt
2022-05-04Make Pipeline::write take an unsigned char const* (API change)Jay Berkenbilt
2022-05-04Spell check with newer cSpellJay Berkenbilt
2022-05-04Make assert handling less error-proneJay Berkenbilt
Prevent my future self or other contributors from using assert in tests and then having that assert not do anything because of the NDEBUG macro.
2022-05-04Add internal Pl_Base64Jay Berkenbilt
Bidirectional base64; will be used by JSON v2.
2022-05-02Add reactors to the JSON parserJay Berkenbilt
2022-05-02Windows perl workaroundJay Berkenbilt
2022-05-01Limit parser depth for json parserJay Berkenbilt
2022-04-30Code clean up: use range-style for loops wherever possibleJay Berkenbilt
Where not possible, use "auto" to get the iterator type. Editorial note: I have avoid this change for a long time because of not wanting to make gratuitous changes to version history, which can obscure when certain changes were made, but with having recently touched every single file to apply automatic code formatting and with making several broad changes to the API, I decided it was time to take the plunge and get rid of the older (pre-C++11) verbose iterator syntax. The new code is just easier to read and understand, and in many cases, it will be more effecient as fewer temporary copies are being made. m-holger, if you're reading, you can see that I've finally come around. :-)
2022-04-30Formatting: remove space in range-style for loopsJay Berkenbilt
Change .clang-format and commit automated changes from a fresh run of format-code
2022-04-30Use fluent appendItemJay Berkenbilt