Commit Graph

322 Commits

Author SHA1 Message Date
Project Nayuki 3d0863717a Simplified small bits of Python and JavaScript code, without changing behavior. 2017-08-27 00:05:52 +00:00
Project Nayuki 6dfb842afa Tweaked Java and C++ code and comment slightly. 2017-08-26 18:57:52 +00:00
Project Nayuki 6b2cfd98dc Fixed the upper limit of ECI values to be more permissive according to the spec, in almost all language versions except C. 2017-08-26 18:43:54 +00:00
Project Nayuki 58a39a96c3 Added an initial, incomplete, but compilable Rust implementation of this library. 2017-08-26 02:03:26 +00:00
Project Nayuki 99833249e1 Slightly simplified Python code to not parenthesize (x & y) == z due to operator precedence rules. (But parentheses are still required in C/C++/Java/JavaScript.) 2017-08-25 22:38:32 +00:00
Project Nayuki 5b060413b6 Added length check and tweaked a cast in C++ code. 2017-08-18 04:06:11 +00:00
Project Nayuki 3305d230c1 Added rvalue reference (xvalue) constructor version for C++ QrSegment, updated code to use it. 2017-08-18 03:43:28 +00:00
Project Nayuki 2984aa504d Added a forgotten #include to C++ code (related to commit 9f2c8d9e96). 2017-08-18 03:39:51 +00:00
Project Nayuki 8997da4651 Converted Java BitBuffer comments to Javadoc, updated related comments in most other language versions. 2017-08-18 03:36:00 +00:00
Project Nayuki 97e0388cb7 Simplified the argument check in BitBuffer.appendBits() by tightening the input range, also removed some parentheses. 2017-08-18 03:33:03 +00:00
Project Nayuki 7e512971df Fixed some arithmetic checks in Java and C code. 2017-08-18 03:31:35 +00:00
Project Nayuki f7888d5a24 Tweaked HTML code to use CSS instead of NBSP, without changing visual appearance. 2017-08-18 01:26:57 +00:00
Project Nayuki 40493f4f01 Simplified JavaScript code by making BitBuffer's prototype be Array, updated dependent code. 2017-08-18 01:15:11 +00:00
Project Nayuki b8587edf5f Simplified a bit of JavaScript code. 2017-08-18 01:00:16 +00:00
Project Nayuki 16f504be67 Inlined the 'size' variable in getAlignmentPatternPositions() in 3 language versions. 2017-08-18 00:44:24 +00:00
Project Nayuki 49f6538682 Updated a comment in getAlignmentPatternPositions() in most language versions (except JavaScript). 2017-08-18 00:39:30 +00:00
Project Nayuki 9f2c8d9e96 Simplified and tweaked various small pieces of C++ code. 2017-08-18 00:17:11 +00:00
Project Nayuki 5279a4c88b Updated C++ QrSegment class to accept and store std::vector<bool> instead of BitBuffer. 2017-08-18 00:14:16 +00:00
Project Nayuki 573c5bba9d Simplified C++ code by removing qualifying prefix when calling static functions. 2017-08-18 00:11:23 +00:00
Project Nayuki 777a9365f1 Fixed and updated C++ code regarding integer overflow checks. 2017-08-18 00:09:51 +00:00
Project Nayuki 2794dbc179 Added private helper function to C++ code to abstract how modules are stored. 2017-08-17 23:41:01 +00:00
Project Nayuki 3db1e2d9b1 Renamed 'packedKanjiData' constant in demo programs. 2017-08-17 21:52:08 +00:00
Project Nayuki 4a62fb138a Updated C++ QrSegment's constructor and fields to use BitBuffer instead of vector<uint8_t>. 2017-08-17 21:49:53 +00:00
Project Nayuki ff0eed8700 Tweaked C++ and Java demo code for clarity. 2017-08-17 21:37:04 +00:00
Project Nayuki 20a05141ec Added C++ QrSegment constructor taking BitBuffer argument, updated existing code to use it. 2017-08-17 21:29:15 +00:00
Project Nayuki 5a47e04b52 Revamped C++ BitBuffer code to be based on std::vector<bool>, updated dependent code. 2017-08-17 21:18:31 +00:00
Project Nayuki 2c1991adad Simplified C++ code by using for-each loop. 2017-08-17 21:04:21 +00:00
Project Nayuki f6e1276b08 Updated Java QrSegment fields from array to BitBuffer, changed methods and updated code that depended on this design. 2017-08-17 20:34:52 +00:00
Project Nayuki 05d470fcca Added BitBuffer-based constructor to Java QrSegment class, updated existing library and demo code to use it. 2017-08-17 20:28:28 +00:00
Project Nayuki 7a2555816b Updated Java BitBuffer code to add methods and make the class public. 2017-08-17 20:12:42 +00:00
Project Nayuki 493d3c31f2 Slightly simplified Java code by making BitBuffer use BitSet instead of manual array manipulation. 2017-08-17 20:08:28 +00:00
Project Nayuki a341901d94 Simplified Python code by making BitBuffer subclass list, updated internal usages. 2017-08-17 20:03:19 +00:00
Project Nayuki ac10dc21ce Simplified JavaScript code to use single quotes for XML code generation, so that double quotes within text don't need escape. 2017-07-26 20:38:34 +00:00
Project Nayuki d785ecb598 Simplified the no-stroke declaration in SVG output code - in Java, C++, JavaScript, Python language versions. 2017-07-26 20:34:29 +00:00
Project Nayuki 7075db21d1 Changed C makefile rules to use the shared library when possible, and to fix library build rule if there is more than one .c source file. 2017-07-21 19:00:43 -04:00
Project Nayuki c936e2c1de Added variable for library file name, added library to the default build - in the C makefile. 2017-07-21 18:57:09 -04:00
Project Nayuki ea59bedc93 Reordered definition and added comment to C makefile. 2017-07-21 18:55:02 -04:00
Ben Kelly a3dcc36dd4 Add shared library make target for C library 2017-07-21 12:22:17 +03:00
Project Nayuki 88cc1c05fd Fully fixed C library code to be compilable in C++ mode (polyglot). 2017-07-04 06:18:14 +00:00
Project Nayuki ce58036cb2 Tweaked C library code to not use gotos, to make it more friendly to compile in C++ mode. 2017-07-04 06:18:00 +00:00
Project Nayuki eb536b43c5 Tweaked C test program sto be more C++-friendly by adding macro to cast malloc(), refactored existing code to use the macro. 2017-07-04 06:17:08 +00:00
Project Nayuki f089897e04 Tweaked C test suite code to make test vectors immutable (const). 2017-07-04 05:42:05 +00:00
Project Nayuki 047f85d164 Tweaked C code to be more correct regarding #include <stddef.h> for size_t. 2017-07-04 05:27:18 +00:00
Project Nayuki c42fd75b77 Tweaked C demo code to be more correct by declaring nullary functions with '(void)'. 2017-06-26 04:45:51 +00:00
Project Nayuki 377af20c1a Updated Python package version number to 1.1.0 for release on PyPI. 2017-05-21 20:45:51 +00:00
Project Nayuki e0e48e0cf7 Updated top-level readme document and package description within setup.py. 2017-05-11 21:33:14 +00:00
Project Nayuki 7727d371e1 Simplified Java and Python demo code slightly. 2017-05-11 20:31:42 +00:00
Project Nayuki a610a3d8df Added support for making Extended Channel Interpretation (ECI) segments - in Java, C++, JavaScript, and Python language versions. 2017-05-08 18:04:10 +00:00
Project Nayuki 0482a1ec5b Simplified a small bit of variables and logic of QrCode.getPenaltyScore() in all language versions, but in a subtly different way per language. 2017-05-08 07:30:53 +00:00
Project Nayuki e28c1d718e Simplified a few small pieces of Python code. 2017-05-08 06:41:17 +00:00