Commit Graph

198 Commits

Author SHA1 Message Date
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
Project Nayuki d416d5cb3e Renamed a Python method to be private for consistency. 2017-05-08 06:40:58 +00:00
Project Nayuki 84ab01d23a Added a few comments to Python code. 2017-05-08 06:40:28 +00:00
Project Nayuki cc6855f045 Clarified Python code by adding parentheses around compound expressions containing chained comparisons. 2017-05-08 06:22:53 +00:00
Project Nayuki 52694b5327 Simplified/deoptimized Java and JavaScript code to use string search instead of lookup table for alphanumeric mode encoding, without changing functionality. This is similar to the previous commit 106e31d9c7. By comparison, the Python code had always used a proper dictionary, and the C code implemented string search from the start. 2017-05-08 06:20:50 +00:00
Project Nayuki 106e31d9c7 Simplified/deoptimized C++ code to use string search instead of lookup table for alphanumeric mode encoding. Also tightened the error checking in QrSegment::makeAlphanumeric(). As a side effect this now makes text encoding correct on non-ASCII systems (e.g. EBCDIC). 2017-05-08 06:10:56 +00:00
Project Nayuki 50c1a6b8af Simplified a few lines of code in constructor of ReedSolomonGenerator in all language versions. 2017-05-08 05:21:05 +00:00
Project Nayuki 5d1069a93c Added 'extern "C"' directives to make the C header file usable in C++ code. 2017-05-07 21:51:08 +00:00
Project Nayuki 17e0155500 Added local variable to appendErrorCorrection() in {Java, C++, JavaScript, Python} language versions to reduce code repetition and synchronize with C version. 2017-05-06 17:19:00 +00:00
Project Nayuki a712ccc230 Added test cases for C function appendErrorCorrection(). 2017-05-06 16:54:44 +00:00
Project Nayuki d11707d06a Added test cases for C function appendBitsToBuffer(). 2017-05-06 13:37:15 +00:00
Project Nayuki d32b2a58fc Improved the behavior of accepting/handling byte-sequence data types in Python code. 2017-05-06 12:14:59 +00:00
Project Nayuki 652ee37f59 Updated comment for QrCode.getNumRawDataModules() in all language versions. 2017-05-06 11:51:21 +00:00
Project Nayuki 84dd6f4e07 Updated comment for multiply()/finiteFieldMultiply() in C++ and C code. 2017-05-06 11:50:31 +00:00
Project Nayuki 1a2b0065fe Updated comments in C code. 2017-05-06 11:43:14 +00:00
Project Nayuki 0b4dba367a Added line breaks to some long C function prototypes (matching line breaks in the definitions). 2017-05-06 11:36:38 +00:00
Project Nayuki c99bb61f41 Added local variables to a C function to shorten code width. 2017-05-06 11:35:44 +00:00
Project Nayuki 73b05e36fb Added null checks to all public C functions. 2017-05-06 11:34:41 +00:00
Project Nayuki ed56fcfe8f Tweaked some C++ code to use 'using std::vector;' to reduce verbosity. 2017-05-05 21:03:08 +00:00
Project Nayuki 9840a780a4 Added missing #include for QrCode.cpp due to the use of std::abs(). 2017-05-05 20:57:38 +00:00
Project Nayuki d17ff80b1a Updated some C++ implementation code to be stricter by adding appropriate 'using' directives for C standard library types. 2017-05-05 20:57:13 +00:00
Project Nayuki 58046f902f Updated some C++ implementation code to be stricter by prepending std:: prefix for C standard library types. 2017-05-05 20:56:32 +00:00
Project Nayuki 33af4e376e Updated C++ header code to be stricter by prepending std:: prefix for C standard library types. 2017-05-05 20:55:32 +00:00
Project Nayuki 48e0bc00b2 Updated readme document example code due to changed C API. 2017-04-26 17:32:29 +00:00
Project Nayuki c82c6f478b Tweaked C code to give explicit value to Ecc enum, to approve of casting enum values to/from int. 2017-04-26 17:21:44 +00:00