Commit Graph

163 Commits (8329a7108fc22be3e1eec0a9f9318978579e3621)

Author SHA1 Message Date
Project Nayuki 8329a7108f Slightly simplified the calculation of alignment pattern spacing in a non-obvious way, adapted from David Evans's "Lean QR" project.
3 months ago
Project Nayuki c147f7e328 Clarified a magic value in C code and reflowed some associated comments.
2 years ago
Project Nayuki c99a727c8b Updated function-level comments in the C language port.
3 years ago
Project Nayuki c7ab2582aa Added value range assertions to QrCode.getPenaltyScore(), in all language ports.
3 years ago
Project Nayuki c53c754acf Added/tweaked comments in C code to correspond to the other language ports.
3 years ago
Project Nayuki 359c42557c Renamed a C library internal function getModule() to getModuleBounded().
3 years ago
Project Nayuki 94aca572e4 Renamed a C library internal function setModule() to setModuleBounded().
3 years ago
Project Nayuki a078f19cf4 Renamed a C library internal function setModuleBounded() to setModuleUnbounded().
3 years ago
Project Nayuki 2fc287904a Tweaked C code to avoid unused-parameter warning when compiling without asserts.
3 years ago
Project Nayuki 0e80f23c04 Reordered QrSegment.{isNumeric(),isAlphanumeric()} in {C, C++, Rust} versions.
3 years ago
Project Nayuki 764749bd8a Added spaces around multiplication operators in QrCode.getAlignmentPatternPositions() for all language versions, for consistency with other code.
3 years ago
Project Nayuki 1fd0216dfe Changed the word "black" to "dark" in {comments, local variables,} in order to match the vocabulary in the QR Code specification document.
3 years ago
Project Nayuki 99e7d59383 Changed the word "white" to "light" in {comments, local variables, a private C function} in order to match the vocabulary in the QR Code specification document.
3 years ago
Project Nayuki 13a25580a3 Simplified QrCode.getPenalty() in all language versions except Rust, related to commit 1439e8e4a5.
5 years ago
Project Nayuki 6e088f72d3 Added an assertion to QrCode.getNumRawDataModules() in all language versions.
5 years ago
Project Nayuki 9312480978 In C version, added many explicit integer type casts for signedness, with the help of GCC's "-Wsign-conversion" and "-Wconversion".
5 years ago
Project Nayuki 76127b8bfe Renamed functions and variables, and updated comments, thus synchronizing the C language version with the previous changeset.
5 years ago
Project Nayuki c5ad557eea Updated the finder pattern detector logic in the other 6 language versions to match Java code.
5 years ago
Project Nayuki 1ca214499b Renamed a local variable in all language versions (although the Java version has different logic).
5 years ago
Project Nayuki 40d24f38aa Fixed argument type of qrcodegen_encodeSegmentsAdvanced() mask in C code.
6 years ago
Project Nayuki a072562461 Simplified an integer comparison in C code.
6 years ago
Project Nayuki fd083f70e8 Reordered calls to applyMask()/drawFormatBits() for conceptual clarity, without changing output (because masks don't affect format bits), in all language versions.
6 years ago
Project Nayuki 76de28378e Added a const to C code for safety.
6 years ago
Project Nayuki af872343c0 Completely rewrote the algorithm for detecting finder-like patterns, making it more accurate and compliant with the QR Code specification, in all languages.
6 years ago
Project Nayuki 5ac0e2a938 Inverted some if-else statements in QrCode.getPenaltyScore() without changing behavior, in all languages.
6 years ago
Project Nayuki 111b20b2b9 Tweaked logic in QrCode.getPenaltyScore() for future expansion, without changing behavior, in all languages.
6 years ago
Project Nayuki a14de3d959 Renamed colorX, colorY local variables in QrCode.getPenaltyScore() to just color, in all language versions.
6 years ago
Project Nayuki f2ea49b7d4 Tweaked QrCode.drawFormatBits() to use end-exclusive range in second copy for clarity, in most languages.
6 years ago
Project Nayuki 7dbfabd388 Reordered functions and sections in C code for better flow for human readers, without changing functionality.
6 years ago
Project Nayuki 614169fc88 Fixed a comment in C code.
6 years ago
Project Nayuki eebae19fb2 Reduced the use of the word "symbol" when referring to QR Codes, in all languages.
6 years ago
Project Nayuki 85eb6493fd Updated and synchronized documentation comments for QrSegment's constants/functions involving character sets, in all languages.
6 years ago
Project Nayuki 29479efedf Updated class BitBuffer's documentation comments, in all languages.
6 years ago
Project Nayuki 4ee7f6df96 Updated documentation comments for two QrSegment.Mode members, in all language versions.
6 years ago
Project Nayuki af6a247121 Tweaked logic in QrSegment.makeEci() to reduce redundancy, in all languages except Rust.
6 years ago
Project Nayuki dce44caf8f Tweaked BitBuffer.appendBits() comment in several language versions.
6 years ago
Project Nayuki aa264f5a4d Simplified the arithmetic of an internal C function.
6 years ago
Project Nayuki 6903d28c90 Swapped {dy,dx} variables in commutative operations for clarity, in all languages.
6 years ago
Project Nayuki 87868d7920 Renamed loop variables in QrCode.{drawFinderPattern(),drawAlignmentPattern()} for clarity, in all languages (but somewhat differently in C).
6 years ago
Project Nayuki 440efef8bf Tweaked C code to avoid unnecessary array initialization.
6 years ago
Project Nayuki 0920922a32 Tweaked qrcodegen.c to not be compilable in C++ mode (undoing commit 88cc1c05fd).
6 years ago
Project Nayuki 30aed54c47 Simplified C code to directly assign useful values to the segment mode enum.
6 years ago
Project Nayuki 957219dc91 Reformatted some whitespace for alignment in all language versions.
6 years ago
Project Nayuki e7854eb797 Reformatted some whitespace for alignment in all language versions.
6 years ago
Project Nayuki 3ead3dbb84 Updated up to 8 comments in all language versions, but somewhat differently in each language.
6 years ago
Project Nayuki 362d552c92 Simplified QrSegment.Mode.numCharCountBits() in all language versions.
6 years ago
Project Nayuki 16b59e207d Deleted unnecessary version range check in two private functions, in all language versions except Rust.
6 years ago
Project Nayuki 9c670453a8 Tweaked small pieces of code.
6 years ago
Project Nayuki 4ede209d9a Changed QrCode.getAlignmentPatternPositions() from static function to instance method, tweaked its logic, and updated comment - in all languages but differently in each.
6 years ago
Project Nayuki 4c882636bb Updated comments for QrSegment.getTotalBits() in all language versions, but somewhat differently per language.
6 years ago