Commit Graph

814 Commits

Author SHA1 Message Date
Project Nayuki 4cd4a77b61 Rewrote comments for top-level QR-encoding functions in C, to correspond better to other language ports. 2022-01-08 04:26:56 +00:00
Project Nayuki 12295b2002 Fixed a misspelled word in C comments. 2022-01-08 03:42:50 +00:00
Project Nayuki 405e8509d3 Changed to standard error classes in TypeScript code. 2022-01-07 17:42:50 +00:00
Project Nayuki c442fd448f Marked Rust code to forbid unsafe. 2022-01-07 17:40:03 +00:00
Project Nayuki 2df937129c Updated copyright year in readme document. 2022-01-07 17:25:27 +00:00
Project Nayuki 3c9493d48a Added a comment in Java QrSegmentAdvanced.makeSegmentsOptimally() functions to be consistent with QrCode.encodeSegments(). 2022-01-07 06:04:32 +00:00
Project Nayuki 862e29b9ac Replaced str.format() with f-strings in Python code. 2022-01-07 06:00:18 +00:00
Project Nayuki 0baececd3f Removed run-time type assertions in Python code in favor of static type hints. 2022-01-07 05:54:28 +00:00
Project Nayuki aaaaff6e68 Updated documentation comments for QrCode::{encode_text(),encode_binary()} in Rust-no-heap and C ports. 2021-12-03 06:05:20 +00:00
Project Nayuki 8f654269ab Revamped documentation comments about argument arrays in the C and Rust-no-heap ports. 2021-12-03 05:56:54 +00: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 e5f23aeda9 Updated the content of language-specific readme files and package-level documentation comments. 2021-12-01 05:58:37 +00:00
Project Nayuki a015ab50ad Added a paragraph to partially synchronize all readme files and package-level documentation comments. 2021-12-01 05:56:12 +00:00
Project Nayuki 66f881cf47 Removed references to other programming languages within language-specific overview/readme text. 2021-11-25 04:45:32 +00:00
Project Nayuki 84e5a4d9e3 Clarified the Rust-no-heap documentation example code. 2021-11-25 04:43:16 +00:00
Project Nayuki d3239d6e4e Merged two separate but related projects:
- QR Code generator library (6 languages) (commit 44a5d2e8ae)
- Fast QR Code generator library (Java) (commit e3e8276149)
2021-11-14 21:40:35 +00:00
Project Nayuki e3e8276149 Renamed directory, moved file. 2021-11-14 21:39:35 +00:00
Project Nayuki 44a5d2e8ae Added another implementation in Rust, distinguished by performing no heap allocations and enabling no_std. 2021-11-14 21:37:26 +00:00
Project Nayuki c73c52cd51 Updated function-level comments in the C language port. 2021-11-14 21:34:10 +00:00
Project Nayuki 40d9c0d85f Revamped the DataTooLong error type in Rust to change from string to enum and remove Error.description(). 2021-11-12 04:44:46 +00:00
Project Nayuki aaf9094fc6 Reformatted a long function signature in Rust. 2021-11-12 03:43:07 +00:00
Project Nayuki 907d471ab8 Reformatted some Rust code so that the expressions surrounding .. have no spaces around operators. 2021-11-12 03:31:18 +00:00
Project Nayuki 72385fc19d Tweaked some of QrSegment.makeEci()'s integer literals to binary notations in most language ports. 2021-11-12 03:28:41 +00:00
Project Nayuki ab5778120b Tweaked Rust code to use T::try_from(x).unwrap() instead of x as T, in some cases for safety. 2021-11-06 23:11:39 +00:00
Project Nayuki 8742ac9543 Clarified a few bits of Rust code. 2021-11-06 23:09:37 +00:00
Project Nayuki 999728bd57 Simplified a few comparisons in Rust code. 2021-11-06 23:08:44 +00:00
Project Nayuki adc9d813bd Refactored TypeScript code to add assert() function to make it easier to read the intent and compare to other language ports. 2021-11-06 17:10:14 +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 cbbebff266 Removed unhelpful assertion error messages from Rust code. 2021-11-06 16:48:52 +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 8131a774a5 Renamed a local variable in Rust code for consistency with other language ports. 2021-11-06 05:45:29 +00:00
Project Nayuki e5145d6854 Tweaked Python, Rust, TypeScript code to rename the constructor mask parameter to msk for consistency with Java and C++ language ports (related to commit 67c62461d3), and to avoid potential confusion with the object field named mask. 2021-11-06 05:42:47 +00:00
Project Nayuki 43152cdf18 Slightly tweaked code and comments to correspond to other language ports. 2021-11-06 05:34:38 +00:00
Project Nayuki f58d2baf22 Inlined Java handleConstructorMasking() and tweaked comments to correspond to other language ports. 2021-11-06 05:33:44 +00:00
Project Nayuki 1c534996f1 Added/tweaked comments in C code to correspond to the other language ports. 2021-11-06 05:31:06 +00:00
Project Nayuki 302ba9fb5e Renamed a C library internal function getModule() to getModuleBounded(). 2021-11-06 05:17:02 +00:00
Project Nayuki e7dd0c8321 Renamed a C library internal function setModule() to setModuleBounded(). 2021-11-06 05:16:30 +00:00
Project Nayuki e87627359e Renamed a C library internal function setModuleBounded() to setModuleUnbounded(). 2021-11-06 05:15:25 +00:00
Project Nayuki 1d1dbc5b64 Simplified a bit of internal Rust code. 2021-11-04 15:34:49 +00:00
Project Nayuki 37516dc05b Slightly deoptimized Rust code for clarity, partly undoing commit 5728cfe3af. 2021-11-04 15:18:34 +00:00
Project Nayuki b3ff878b2c Tweaked C code to avoid unused-parameter warning when compiling without asserts. 2021-11-04 14:45:44 +00:00
Project Nayuki 56fb721c27 Added null checks and error termination logic to runnable main C code after calls to malloc()/calloc(), removed an unnecessary non-null assertion. 2021-10-20 01:56:33 +00:00
Project Nayuki 4dd3cf37f7 Made TypeScript code more robust by adding Readonly<> wrapper around appropriate array types in function parameters. 2021-10-14 15:30:31 +00:00
Project Nayuki ced640df26 Fixed example Rust code in readme, related to commit c8e1b0caed. 2021-10-01 18:08:11 +00:00
Project Nayuki e415cd89e3 Fixed example Rust code in documentation comments, due to commit 5728cfe3af. 2021-10-01 18:04:48 +00:00
Project Nayuki 565d85d771 Refactored Rust code to use {Range,RangeInclusive}.contains() instead of primitive operations. 2021-09-16 16:21:19 +00:00
Project Nayuki d728c04273 Simplified small pieces of Rust code. 2021-09-16 16:19:25 +00:00