223 Commits

Author SHA1 Message Date
guanzengkun b1184033b7 Description: upgrade qrcode from 1.7.0 to 1.8.0
IssueNo: https://gitee.com/openharmony/third_party_qrcodegen/issues/I6O20W
Feature or Bugfix: Feature
Binary Source:from third patry
Signed-off-by: guanzengkun <guanzengkun@huawei.com>
2023-04-27 15:39:15 +08:00
pssea e9104a60b9 Description: upgrade qrcode from 1.6.0 to 1.7.0
IssueNo: https://gitee.com/openharmony/graphic_ui/issues/I4NPYK
Feature or Bugfix: Feature
Binary Source:No
Signed-off-by: lizhiqi <lizhiqi1@huawei.com>
2021-12-22 21:00:55 +08:00
Project Nayuki 64d7de69f9 - In the project (top-level) readme file, kept one language's code example and moved all others out to language-specific readme files.
- Added a readme file for each programming language implementation (port) if it didn't already have one, mostly by copying the project readme text, and then added/edited a couple of feature points.
2021-12-01 06:01:50 +00:00
Project Nayuki a2a31906af Changed C++, Rust, Python code to use debug-mode assertions that can be disabled, similar to Java's assert, corresponding to the logic in the Java language port. 2021-11-06 17:03:16 +00:00
Project Nayuki 446d87c2ba Improved some assertion error messages, corresponding to Rust's unreachable!(). 2021-11-06 16:59:04 +00:00
Project Nayuki ae663f76b5 Simplified a bit of code. 2021-11-06 06:32:34 +00:00
Project Nayuki a32252b558 Added value range assertions to QrCode.getPenaltyScore(), in all language ports. 2021-11-06 06:15:19 +00:00
Project Nayuki 1f4657f715 Added class section comments to C++ code, related to commit 096c70cd4d. 2021-11-06 05:49:12 +00:00
Project Nayuki 90133a04a5 Renamed C++ output library file, avoiding conflict with C library if both get installed system-wide. 2021-08-01 00:58:25 +00:00
Project Nayuki 0e80f23c04 Reordered QrSegment.{isNumeric(),isAlphanumeric()} in {C, C++, Rust} versions. 2021-07-28 19:45:54 +00:00
Project Nayuki 764749bd8a Added spaces around multiplication operators in QrCode.getAlignmentPatternPositions() for all language versions, for consistency with other code. 2021-07-28 17:32:33 +00:00
Project Nayuki 2261248957 Removed the test worker program in every language and the Python batch tester, because this is not core functionality and is hard to explain. 2021-07-28 17:09:18 +00:00
Project Nayuki d4080974f2 Renamed the C++ library source files to qrcodegen, because there's no longer a file per class, related to commit 096c70cd4d. 2021-07-28 17:09:18 +00:00
Project Nayuki cd037d9149 In C++ version: moved QrCode.toSvgString() out of the library and into the runnable demo program, slightly adapted some code, updated documentation comments. 2021-07-28 17:09:16 +00:00
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. 2021-07-27 23:35:06 +00:00
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. 2021-07-27 23:34:00 +00:00
Project Nayuki 0532c7a237 Merged. 2021-07-27 23:19:35 +00:00
Project Nayuki 2aed7af53e Updated field and method in C++ code in order to store Mode objects by pointer instead of value. 2021-07-27 23:19:30 +00:00
Project Nayuki 772a311c56 Tweaked a bit of C++ code to use strict bounds checking for consistency. 2021-07-25 03:30:37 +00:00
Project Nayuki 68b2b7782b Simplified Java and C++ code to remove unnecessary this, also improving consistency with other field assignments, enabled by a local variable renaming in commit 67c62461d3. 2021-07-24 21:54:42 +00:00
Project Nayuki a999dca15f Simplified an expression because C++11 natively supports for-each over a braced list, without needing to construct a typed object. 2021-07-01 04:35:23 +00:00
mamingshuai ef7ebfe2c8 update openharmony 1.0.1 2021-03-11 18:38:29 +08:00
Project Nayuki 455e0b2427 Merged. 2020-09-12 16:29:56 +00:00
Neil Haran 0df0908723 In C++ version, use const-reference in QrSegment ctor rather than deep copy. 2020-07-18 13:06:14 +01:00
Thomas Klausner 5217af7cf6 Honor LDFLAGS when building executables. 2020-02-08 18:48:32 +01:00
Project Nayuki 13a25580a3 Simplified QrCode.getPenalty() in all language versions except Rust, related to commit 1439e8e4a5. 2020-01-29 17:52:21 +00:00
Project Nayuki 096c70cd4d Reorganized C++ library code into one implementation source file and one header file (instead of 3+3), changing some spacing and ordering, without changing functionality. 2020-01-11 18:26:12 +00:00
Project Nayuki 67c62461d3 Renamed some method parameters to completely avoid variable shadowing, in C++ and Java versions. 2019-10-14 00:20:16 +00:00
Project Nayuki 6e088f72d3 Added an assertion to QrCode.getNumRawDataModules() in all language versions. 2019-09-13 04:09:42 +00:00
Project Nayuki c5d4709e0e Tweaked a C++ integer cast. 2019-09-10 19:25:21 +00:00
Project Nayuki 7eac8beffe Updated C and C++ makefiles to exclude warnings and sanitizers by default, instead recommending extra flags for manually doing a diagnostic/debug build. 2019-08-09 23:00:13 +00:00
Project Nayuki 5efbdc4822 Added whitespace to align some code. 2019-07-22 17:57:06 +00:00
Project Nayuki a8a91e0d38 In C++ version, fixed all remaining implicit integer signedness conversions with the help of GCC's "-Wsign-conversion" and "-Wconversion". 2019-07-22 15:18:18 +00:00
Project Nayuki 419b5ae2d7 In C++ version, added some more explicit casts for integer signedness and width. 2019-07-22 15:02:22 +00:00
Project Nayuki 1fb40bc113 In C++ version, added explicit integer casts for second argument of calls to BitBuffer.appendBits(). 2019-07-22 15:00:00 +00:00
Project Nayuki c3479c0043 In C++ version, added explicit casts from int/long to uint32_t for first argument of calls to BitBuffer.appendBits(). 2019-07-22 14:59:37 +00:00
Project Nayuki b7c9ccfff9 Simplified and clarified a few bits of code, without changing behavior. 2019-07-14 17:11:28 +00:00
Project Nayuki b5aaadf758 Demoted ReedSolomonGenerator from a class to a set of functions, and changed some names and comments, in all languages except C. This reduces code verbosity but doesn't change public APIs or visible behavior. The code organization is similar to the finder-like-pattern-detector feature. 2019-07-14 16:54:00 +00:00
Project Nayuki c5ad557eea Updated the finder pattern detector logic in the other 6 language versions to match Java code. 2019-07-06 03:30:51 +00:00
Project Nayuki 1ca214499b Renamed a local variable in all language versions (although the Java version has different logic). 2019-07-06 01:43:20 +00:00
Project Nayuki ec729bf269 Moved an #include in C++ code for correctness. 2019-01-03 23:31:07 +00:00
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. 2018-11-04 19:26:33 +00:00
Project Nayuki 2359d68243 Tweaked C++ code to inline handleConstructorMasking() because the mask field is private instead of public const. 2018-11-04 19:16:28 +00:00
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. 2018-10-26 06:53:12 +00:00
Project Nayuki 5ac0e2a938 Inverted some if-else statements in QrCode.getPenaltyScore() without changing behavior, in all languages. 2018-10-26 05:24:21 +00:00
Project Nayuki 111b20b2b9 Tweaked logic in QrCode.getPenaltyScore() for future expansion, without changing behavior, in all languages. 2018-10-26 05:21:34 +00:00
Project Nayuki a14de3d959 Renamed colorX, colorY local variables in QrCode.getPenaltyScore() to just color, in all language versions. 2018-10-26 03:47:04 +00:00
Project Nayuki c36c4a28eb Updated Java, C++, Python, Rust worker programs to catch the new exception; removed error message string comparisons. 2018-10-26 02:42:35 +00:00
Project Nayuki 8da8107cc2 Updated QrCode.encodeSegments() to throw DataTooLongException - in Java, C++, Python, Rust code. Rust code also changes return types from Option to Result. Updated Java and Rust documentation. 2018-10-26 02:42:04 +00:00
Project Nayuki 4635e8a8a8 Added new unused "data too long" exception/error class to Java, C++, Python, Rust code. 2018-10-26 02:39:46 +00:00