843 Commits

Author SHA1 Message Date
Project Nayuki
845eab6f36 Simplified a bit of code. 2021-11-06 06:32:34 +00:00
Project Nayuki
c7ab2582aa Added value range assertions to QrCode.getPenaltyScore(), in all language ports. 2021-11-06 06:15:19 +00:00
Project Nayuki
97b2d9d71c Added class section comments to C++ code, related to commit 096c70cd4d4b. 2021-11-06 05:49:12 +00:00
Project Nayuki
edc91c622e Renamed a local variable in Rust code for consistency with other language ports. 2021-11-06 05:45:29 +00:00
Project Nayuki
f0945bc682 Tweaked Python, Rust, TypeScript code to rename the constructor mask parameter to msk for consistency with Java and C++ language ports (related to commit 67c62461d380), and to avoid potential confusion with the object field named mask. 2021-11-06 05:42:47 +00:00
Project Nayuki
d6be9c5e44 Slightly tweaked code and comments to correspond to other language ports. 2021-11-06 05:34:38 +00:00
Project Nayuki
41b90335d9 Inlined Java handleConstructorMasking() and tweaked comments to correspond to other language ports. 2021-11-06 05:33:44 +00:00
Project Nayuki
c53c754acf Added/tweaked comments in C code to correspond to the other language ports. 2021-11-06 05:31:06 +00:00
Project Nayuki
359c42557c Renamed a C library internal function getModule() to getModuleBounded(). 2021-11-06 05:17:02 +00:00
Project Nayuki
94aca572e4 Renamed a C library internal function setModule() to setModuleBounded(). 2021-11-06 05:16:30 +00:00
Project Nayuki
a078f19cf4 Renamed a C library internal function setModuleBounded() to setModuleUnbounded(). 2021-11-06 05:15:25 +00:00
Project Nayuki
c6fcc212d1 Simplified a bit of internal Rust code. 2021-11-04 15:34:49 +00:00
Project Nayuki
3ae4141666 Slightly deoptimized Rust code for clarity, partly undoing commit 6c1f96789429. 2021-11-04 15:18:34 +00:00
Project Nayuki
2fc287904a Tweaked C code to avoid unused-parameter warning when compiling without asserts. 2021-11-04 14:45:44 +00:00
Project Nayuki
a06aef7c62 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
c6cbb388a7 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
a6f886f6ff Fixed example Rust code in readme, related to commit c8e1b0caed50. 2021-10-01 18:08:11 +00:00
Project Nayuki
599b637c73 Fixed example Rust code in documentation comments, due to commit 6c1f96789429. 2021-10-01 18:04:48 +00:00
Project Nayuki
df548a379d Refactored Rust code to use {Range,RangeInclusive}.contains() instead of primitive operations. 2021-09-16 16:21:19 +00:00
Project Nayuki
3301b07c21 Simplified small pieces of Rust code. 2021-09-16 16:19:25 +00:00
Project Nayuki
6c1f967894 Changed Rust functions to take &str instead of &[char] because that type is more natural to use, removed intermediate step of making Vec<char>, updated demo program to fit. 2021-09-09 18:11:43 +00:00
Project Nayuki
3185c310e3 Refactored a repeated expression in Rust code. 2021-09-09 18:08:14 +00:00
leihuang
c2c6e1cf84 feat: build static_library for liteos_m
Signed-off-by: leihuang <leihuang@bestechnic.com>
2021-09-09 11:42:12 +08:00
Project Nayuki
5615dbab5d Hyphenated a phrase. 2021-09-05 04:13:10 +00:00
Project Nayuki
db4ad0bda8 Hyphenated a phrase. 2021-09-05 03:23:30 +00:00
Project Nayuki
4c74eea03e Generalized the Java API to accept CharSequence instead of String, which can be helpful if the input is a temporary StringBuilder. This is possible because almost all functions read characters and convert them to another representation in a new buffer instead of storing the input string immutably. 2021-08-29 17:30:33 +00:00
Project Nayuki
72037f3047 Added string length limit and integer value range assertions to QrSegmentAdvanced.computeCharacterModes(). This fixes int32 overflow for ridiculously long input strings (somewhere around 2^23 characters), which are impossible to put in a QR Code anyway. 2021-08-29 17:23:12 +00:00
Project Nayuki
233b4ee331 Fixed static typing omissions in Python code. 2021-08-11 17:07:32 +00:00
Project Nayuki
4d13c303dc Updated package version numbers. 2021-08-08 17:21:08 +00:00
Project Nayuki
10c094f99b Tweaked Rust configuration to exclude example programs from crate package. 2021-08-08 17:20:56 +00:00
Project Nayuki
c614fd1ff8 Added Java module declaration, updated POM to compile module as Java 9 but all other classes as Java 8. 2021-08-08 17:01:51 +00:00
Project Nayuki
4eb5dfaa25 Moved QrCodeGeneratorDemo.java out of the package because it's an informal demo and not a core library feature; this also simplifies the Maven build process. 2021-08-08 16:21:49 +00:00
Project Nayuki
3562aceb20 Added more blank lines to Java POM file. 2021-08-08 04:56:01 +00:00
Project Nayuki
da7ad83c5c Updated Java POM configuration to exclude QrCodeGeneratorDemo because it's not core library functionality. 2021-08-01 01:22:45 +00:00
Project Nayuki
5300e400ec 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
11972825b8 Tweaked TypeScript example code in readme to use more modern const/let instead of var. 2021-08-01 00:48:11 +00:00
Project Nayuki
6f68c21b1b Merged. 2021-08-01 00:45:26 +00:00
Project Nayuki
0feda2c009 Imported changes to the readme document from the master branch. 2021-08-01 00:44:41 +00:00
Project Nayuki
272bae5773 Tweaked Markdown language info in readme document. 2021-08-01 00:42:44 +00:00
Project Nayuki
c8e1b0caed Fixed example code in Rust documentation, related to commits a88f0942afe7 and 3da57e5aa01e. 2021-08-01 00:18:51 +00:00
Project Nayuki
cb4643510c Improved the memoizer by adding fast path and slightly simplified existing logic, updated copyright year in readme document. 2021-07-31 23:42:43 +00:00
Project Nayuki
8f9c1be974 Added new public functions QrSegment.{isNumeric(),isAlphanumeric()} and privatized the regexes in {Java, TypeScript, Python}, because the regexes are awkward compared to a clean abstraction. 2021-07-28 19:55:24 +00:00
Project Nayuki
fd425bf995 Publicized the Rust functions QrSegment.{is_numeric(),is_alphanumeric()}. 2021-07-28 19:53:05 +00:00
Project Nayuki
0e80f23c04 Reordered QrSegment.{isNumeric(),isAlphanumeric()} in {C, C++, Rust} versions. 2021-07-28 19:45:54 +00:00
Project Nayuki
04dd0fc06c Tweaked QrCodeGeneratorDemo code to use QrSegmentAdvanced.makeKanji() instead of hard-coding the data words, while maintaining identical output image. 2021-07-28 19:15:14 +00:00
Project Nayuki
bff4ea078c Added parameters for custom module colors when rendering to SVG. 2021-07-28 19:12:53 +00:00
Project Nayuki
02d182ebc2 Added parameters for custom module colors when rendering to BufferedImage, changed some demo code to use non-black/white colors. 2021-07-28 19:09:20 +00:00
Project Nayuki
8640ddf8a5 Added spaces around multiplication operators in QrTemplate.getAlignmentPatternPositions(), for consistency with other code. 2021-07-28 19:04:14 +00:00
Project Nayuki
07725617d7 Removed the test worker program, because this is not core functionality and is hard to explain. 2021-07-28 19:03:31 +00:00
Project Nayuki
1954c534bf Moved QrCode.toSvgString() out of the library and into the runnable demo program, slightly adapted some code, updated documentation comments. 2021-07-28 19:02:39 +00:00