Commit Graph

  • f6e1276b08 Updated Java QrSegment fields from array to BitBuffer, changed methods and updated code that depended on this design. Project Nayuki 2017-08-17 20:34:52 +0000
  • 05d470fcca Added BitBuffer-based constructor to Java QrSegment class, updated existing library and demo code to use it. Project Nayuki 2017-08-17 20:28:28 +0000
  • 7a2555816b Updated Java BitBuffer code to add methods and make the class public. Project Nayuki 2017-08-17 20:12:42 +0000
  • 493d3c31f2 Slightly simplified Java code by making BitBuffer use BitSet instead of manual array manipulation. Project Nayuki 2017-08-17 20:08:28 +0000
  • a341901d94 Simplified Python code by making BitBuffer subclass list, updated internal usages. Project Nayuki 2017-08-17 20:03:19 +0000
  • ac10dc21ce Simplified JavaScript code to use single quotes for XML code generation, so that double quotes within text don't need escape. Project Nayuki 2017-07-26 20:38:34 +0000
  • d785ecb598 Simplified the no-stroke declaration in SVG output code - in Java, C++, JavaScript, Python language versions. Project Nayuki 2017-07-26 20:34:29 +0000
  • 1ff323bf98 Merge c40644de2a into 7075db21d1 #14 Bechir MGHIRBI 2017-07-24 18:59:06 +0000
  • 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. Project Nayuki 2017-07-21 19:00:43 -0400
  • c936e2c1de Added variable for library file name, added library to the default build - in the C makefile. Project Nayuki 2017-07-21 18:57:09 -0400
  • ea59bedc93 Reordered definition and added comment to C makefile. Project Nayuki 2017-07-21 18:55:02 -0400
  • a3dcc36dd4 Add shared library make target for C library #13 Ben Kelly 2017-07-21 12:22:17 +0300
  • c40644de2a Merge pull request #1 from bmghirbi/using-cmake #14 Bechir MGHIRBI 2017-07-18 23:02:05 +0200
  • 09d16eb6dc Using cmake to generate a dynamic library Bechir MGHIRBI 2017-07-12 21:03:11 +0200
  • 88cc1c05fd Fully fixed C library code to be compilable in C++ mode (polyglot). Project Nayuki 2017-07-04 06:18:14 +0000
  • ce58036cb2 Tweaked C library code to not use gotos, to make it more friendly to compile in C++ mode. Project Nayuki 2017-07-04 06:18:00 +0000
  • eb536b43c5 Tweaked C test program sto be more C++-friendly by adding macro to cast malloc(), refactored existing code to use the macro. Project Nayuki 2017-07-04 06:17:08 +0000
  • f089897e04 Tweaked C test suite code to make test vectors immutable (const). Project Nayuki 2017-07-04 05:42:05 +0000
  • 047f85d164 Tweaked C code to be more correct regarding #include <stddef.h> for size_t. Project Nayuki 2017-07-04 05:27:18 +0000
  • c42fd75b77 Tweaked C demo code to be more correct by declaring nullary functions with '(void)'. Project Nayuki 2017-06-26 04:45:51 +0000
  • 71ef4443d3 Merge 047ea220f0 into 377af20c1a #3 George MacKerron 2017-05-22 19:08:53 +0000
  • 5696fb1015 Merge fab251ece6 into 377af20c1a #6 Swanny Peng 2017-05-22 19:08:53 +0000
  • 6d28ecdcd4 Merge 9fa797e8ae into 377af20c1a #11 Andrew Wilson 2017-05-22 17:04:31 +0000
  • 9fa797e8ae Add dart version of javascript qrcodegen. #11 Andrew Wilson 2017-05-22 09:56:50 -0700
  • 377af20c1a Updated Python package version number to 1.1.0 for release on PyPI. v1.1.0 Project Nayuki 2017-05-21 20:45:51 +0000
  • e0e48e0cf7 Updated top-level readme document and package description within setup.py. Project Nayuki 2017-05-11 21:33:14 +0000
  • 7727d371e1 Simplified Java and Python demo code slightly. Project Nayuki 2017-05-11 20:31:42 +0000
  • a610a3d8df Added support for making Extended Channel Interpretation (ECI) segments - in Java, C++, JavaScript, and Python language versions. Project Nayuki 2017-05-08 18:04:10 +0000
  • 0482a1ec5b Simplified a small bit of variables and logic of QrCode.getPenaltyScore() in all language versions, but in a subtly different way per language. Project Nayuki 2017-05-08 07:30:53 +0000
  • e28c1d718e Simplified a few small pieces of Python code. Project Nayuki 2017-05-08 06:41:17 +0000
  • d416d5cb3e Renamed a Python method to be private for consistency. Project Nayuki 2017-05-08 06:40:58 +0000
  • 84ab01d23a Added a few comments to Python code. Project Nayuki 2017-05-08 06:40:28 +0000
  • cc6855f045 Clarified Python code by adding parentheses around compound expressions containing chained comparisons. Project Nayuki 2017-05-08 06:22:53 +0000
  • 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. Project Nayuki 2017-05-08 06:20:50 +0000
  • 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). Project Nayuki 2017-05-08 06:10:56 +0000
  • 50c1a6b8af Simplified a few lines of code in constructor of ReedSolomonGenerator in all language versions. Project Nayuki 2017-05-08 05:21:05 +0000
  • 5d1069a93c Added 'extern "C"' directives to make the C header file usable in C++ code. Project Nayuki 2017-05-07 21:51:08 +0000
  • 17e0155500 Added local variable to appendErrorCorrection() in {Java, C++, JavaScript, Python} language versions to reduce code repetition and synchronize with C version. Project Nayuki 2017-05-06 17:19:00 +0000
  • a712ccc230 Added test cases for C function appendErrorCorrection(). Project Nayuki 2017-05-06 16:54:44 +0000
  • d11707d06a Added test cases for C function appendBitsToBuffer(). Project Nayuki 2017-05-06 13:37:15 +0000
  • d32b2a58fc Improved the behavior of accepting/handling byte-sequence data types in Python code. Project Nayuki 2017-05-06 12:14:59 +0000
  • 652ee37f59 Updated comment for QrCode.getNumRawDataModules() in all language versions. Project Nayuki 2017-05-06 11:51:21 +0000
  • 84dd6f4e07 Updated comment for multiply()/finiteFieldMultiply() in C++ and C code. Project Nayuki 2017-05-06 11:50:31 +0000
  • 1a2b0065fe Updated comments in C code. Project Nayuki 2017-05-06 11:43:14 +0000
  • 0b4dba367a Added line breaks to some long C function prototypes (matching line breaks in the definitions). Project Nayuki 2017-05-06 11:36:38 +0000
  • c99bb61f41 Added local variables to a C function to shorten code width. Project Nayuki 2017-05-06 11:35:44 +0000
  • 73b05e36fb Added null checks to all public C functions. Project Nayuki 2017-05-06 11:34:41 +0000
  • ed56fcfe8f Tweaked some C++ code to use 'using std::vector;' to reduce verbosity. Project Nayuki 2017-05-05 21:03:08 +0000
  • 9840a780a4 Added missing #include for QrCode.cpp due to the use of std::abs(). Project Nayuki 2017-05-05 20:57:38 +0000
  • d17ff80b1a Updated some C++ implementation code to be stricter by adding appropriate 'using' directives for C standard library types. Project Nayuki 2017-05-05 20:57:13 +0000
  • 58046f902f Updated some C++ implementation code to be stricter by prepending std:: prefix for C standard library types. Project Nayuki 2017-05-05 20:56:32 +0000
  • 33af4e376e Updated C++ header code to be stricter by prepending std:: prefix for C standard library types. Project Nayuki 2017-05-05 20:55:32 +0000
  • 48e0bc00b2 Updated readme document example code due to changed C API. Project Nayuki 2017-04-26 17:32:29 +0000
  • c82c6f478b Tweaked C code to give explicit value to Ecc enum, to approve of casting enum values to/from int. Project Nayuki 2017-04-26 17:21:44 +0000
  • 23244832b5 Heavily edited (and slightly fixed) public API comments for C library. Project Nayuki 2017-04-26 17:20:38 +0000
  • fffe81aeb1 Added C test case for getModule(), setModule(), etc. Project Nayuki 2017-04-26 16:58:15 +0000
  • 0bd7684198 Added C test case for initializeFunctionModules(). Project Nayuki 2017-04-26 16:44:41 +0000
  • 546029090c Changed C API functions qrcodegen_encodeText() and qrcodegen_encodeBinary() to return boolean status instead of integer version number, updated runnable programs to work with modified API. Project Nayuki 2017-04-25 06:15:11 +0000
  • 767084b80d Refactored 4 private C functions to move qrsize variable from parameter to local variable, updated callers, without changing behavior. Project Nayuki 2017-04-25 06:06:43 +0000
  • bc12aa1dc6 Refactored C demo program code to remove unused parameter, without changing behavior. Project Nayuki 2017-04-25 06:02:19 +0000
  • 454534ee33 Changed C API function qrcodegen_getSize() to receive array instead of int, updated runnable programs, deleted test cases for this function. Project Nayuki 2017-04-25 06:00:39 +0000
  • df1c49cc39 Changed C API function qrcodegen_getModule() to remove version argument, updated runnable programs. Project Nayuki 2017-04-25 05:46:01 +0000
  • 12bd5401ab Refactored private C function getModule() to read size from QR Code array and remove parameter. Project Nayuki 2017-04-25 05:41:26 +0000
  • 2b4bd9ee24 Refactored private C function fillRectangle() to remove unused size parameter. Project Nayuki 2017-04-25 05:38:33 +0000
  • e19c42014b Refactored private C functions setModule() and setModuleBounded() to read size from QR Code array and remove parameter. Project Nayuki 2017-04-25 05:37:20 +0000
  • 339efc46b8 Changed C code to prepend a size info byte to beginning of QR Code arrays. This has no visible behavioral change when using qrcodegen APIs, but the array data will be different and all buffers need one extra byte. Old code using the API needs to be recompiled because the buffer length calculation macros changed. Project Nayuki 2017-04-25 05:31:15 +0000
  • d6080663b9 Deleted unused header #include. Project Nayuki 2017-04-24 20:48:20 +0000
  • a9c12dd705 Rearranged some overflow comparisons in C++ code for clarity, without changing behavior. Project Nayuki 2017-04-24 20:48:14 +0000
  • 3da7c7b7dc Fixed potential overflow in C++ code, in worst case when int type is int16. Project Nayuki 2017-04-24 20:47:32 +0000
  • 4bc769e58f Updated text and header comments in Python and HTML code. Project Nayuki 2017-04-24 20:45:48 +0000
  • b6b2bddb59 Added SVG text printing to Python demo program, to match C++ and Java demo programs. Project Nayuki 2017-04-24 20:44:58 +0000
  • b0123fee3d Reduced lines in copyright notice of each source file (related to commit 4bba4c03ed). Project Nayuki 2017-04-24 20:41:54 +0000
  • 8d64b3a9bb Updated QR Code JavaScript demo HTML page to improve layout and visual appearance, while retaining same set of features. Project Nayuki 2017-04-24 17:05:33 +0000
  • 4bba4c03ed Reduced blank lines in copyright notice. Project Nayuki 2017-04-23 03:05:37 +0000
  • 7e72bd8dfb Updated examples in readme, updated text in readme and setup.py. Project Nayuki 2017-04-22 03:44:57 +0000
  • 88ad854fd3 Added hand-crafted example of kanji mode text encoding to C++, Java, Python demo programs. Project Nayuki 2017-04-21 16:59:13 +0000
  • cfb4caa377 Updated encodeText() C code to generate zero segments when given zero-length string, to synchronize the output behavior with all other language implementations of encodeText(); adjusted/tweaked some surrounding code and comments for clarity. Project Nayuki 2017-04-21 16:09:40 +0000
  • f82ee7ab78 Changed argument type of applyMask() in C code to the enum for improved clarity. Project Nayuki 2017-04-21 15:59:59 +0000
  • 53da031f1f Tweaked casting between int and enum in C code (only affects this code being compiled in C++ mode). Project Nayuki 2017-04-21 15:56:18 +0000
  • d27ee77082 Tweaked comments in C code. Project Nayuki 2017-04-21 15:51:45 +0000
  • 36f9dc11c4 Fixed more integer overflow checks in C++ code to be stricter (related to commit 873652a82f). Project Nayuki 2017-04-21 15:49:16 +0000
  • ac91c54ce1 Fixed QrSegment.getTotalBits() Java logic to catch integer overflow correctly (related to the C++ fix in commit 873652a82f). Project Nayuki 2017-04-21 15:37:59 +0000
  • 407816ea49 Updated Python package version number to 1.0.1 for release on PyPI. v1.0.1 Project Nayuki 2017-04-21 06:02:28 +0000
  • 4a6d2f4555 Updated readme document to include the new C language library. Project Nayuki 2017-04-21 05:43:02 +0000
  • dafd93dbdf Reduced redundancy in C++ demo programs with 'using' directives. Project Nayuki 2017-04-21 05:38:44 +0000
  • cc2a5d4ce9 Reduced redundancy in C++ code by wrapping .cpp source files in namespace{} blocks. Project Nayuki 2017-04-21 05:30:59 +0000
  • 771bdaf069 Updated C worker program code to properly check return value of scanf() (due to GCC warning). Project Nayuki 2017-04-21 05:07:14 +0000
  • e1f8c2df7a Added and deleted some comments in Python and C programs. Project Nayuki 2017-04-21 05:06:44 +0000
  • ccca906299 Added makefiles for C and C++ code bundles. Project Nayuki 2017-04-21 05:06:18 +0000
  • 4f901df4fa Added test worker program for C++, added program name to Python batch tester. Project Nayuki 2017-04-21 05:04:39 +0000
  • 6c5f8d087b Added test worker programs for Java, Python, C; added batch tester in Python. Project Nayuki 2017-04-21 00:15:07 +0000
  • 55c5510057 Fixed C code fitVersionToData() to check version upper bound correctly on every iteration. Project Nayuki 2017-04-20 23:55:26 +0000
  • 7580ee38e0 Added more standard library header #includes to C code to be strict. Project Nayuki 2017-04-20 23:17:48 +0000
  • 7bd3e8b8d9 Fixed regexes in Python code to fully match to end of string, which affects the case when a string ends with a newline character. Project Nayuki 2017-04-20 22:48:13 +0000
  • 7f20791aa8 Tweaked comment formatting in C demo code. Project Nayuki 2017-04-20 19:35:58 +0000
  • 9b57973245 Added C test cases for 5 functions. Project Nayuki 2017-04-20 19:35:48 +0000
  • 822c339b4e Added simple test program and suite of cases for C library. Project Nayuki 2017-04-20 18:34:44 +0000
  • e1596c3b07 Fixed bug in C code due to implicit non-Boolean conditions and incorrect refactoring (related to commit af67fe1c0b). Project Nayuki 2017-04-20 18:11:22 +0000
  • 18b7180580 Added doVarietyDemo() to C demo program code. Project Nayuki 2017-04-20 17:58:05 +0000
  • aa50d1906d Heavily rearranged functions in C code without making internal changes, also added/updated section heading comments. Project Nayuki 2017-04-20 17:36:42 +0000