843 Commits

Author SHA1 Message Date
Project Nayuki
2515a4213c Moved QrCode.toImage() out of the library and into the runnable demo program, slightly adapted some code, updated documentation comments. 2021-07-28 19:00:32 +00:00
Project Nayuki
e476134828 Changed the words "white"->"light" and "black"->"dark" in comments and local variables, in order to match the vocabulary in the QR Code specification document. 2021-07-28 18:50:30 +00:00
Project Nayuki
219d04a247 Simplified code to remove unnecessary this, also improving consistency with other field assignments, enabled by a local variable renaming in commit 8dabf8664130. 2021-07-28 18:47:30 +00:00
Project Nayuki
db2d52116a Simplified QrCode.getPenalty(). 2021-07-28 18:45:28 +00:00
Project Nayuki
6fb34fddc1 Slightly improved the visual appearance of web pages for TypeScript/JavaScript demos, also tweaked a bit of HTML code. 2021-07-28 18:31:33 +00:00
Project Nayuki
f29c84a2e7 Added custom colors support to the TypeScript input demo web page and program. 2021-07-28 18:11:31 +00:00
Project Nayuki
201993945d In Java and TypeScript versions, added parameters for custom module colors when rendering to SVG. 2021-07-28 18:01:41 +00:00
Project Nayuki
d8f0074fab In TypeScript version, added parameters for custom module colors when rendering to canvas, changed some demo code to use non-black/white colors. 2021-07-28 17:55:59 +00:00
Project Nayuki
bfd18b2fb8 In Java version, added parameters for custom module colors when rendering to BufferedImage, changed some demo code to use non-black/white colors. 2021-07-28 17:48:21 +00:00
Project Nayuki
87db45ef9c Tweaked TypeScript code to correspond with other implementations for ease of auditing, without changing behavior. 2021-07-28 17:38:03 +00:00
Project Nayuki
764749bd8a Added spaces around multiplication operators in QrCode.getAlignmentPatternPositions() for all language versions, for consistency with other code. 2021-07-28 17:32:33 +00:00
Project Nayuki
42bc11c763 Updated C API comments to match the existing code logic requiring non-overlapping array buffers. 2021-07-28 17:21:25 +00:00
Project Nayuki
2261248957 Removed the test worker program in every language and the Python batch tester, because this is not core functionality and is hard to explain. 2021-07-28 17:09:18 +00:00
Project Nayuki
d4080974f2 Renamed the C++ library source files to qrcodegen, because there's no longer a file per class, related to commit 096c70cd4d4b. 2021-07-28 17:09:18 +00:00
Project Nayuki
89895daf1d Changed Java classpath in Python batch tester to match Maven's convention. 2021-07-28 17:09:18 +00:00
Project Nayuki
cd037d9149 In C++ version: moved QrCode.toSvgString() out of the library and into the runnable demo program, slightly adapted some code, updated documentation comments. 2021-07-28 17:09:16 +00:00
Project Nayuki
5bc7bce3c3 In Rust version: moved QrCode.to_svg_string() out of the library and into the runnable demo program, slightly adapted some code, updated documentation comments. 2021-07-28 17:09:05 +00:00
Project Nayuki
3dcac1db78 In Python version: moved QrCode.to_svg_string() out of the library and into the runnable demo program, slightly adapted some code, updated documentation comments. 2021-07-28 17:09:05 +00:00
Project Nayuki
3531fda14f In TypeScript version: moved QrCode.toSvgString() out of the library and into a demo program, slightly adapted some code, updated documentation comments. 2021-07-28 17:09:02 +00:00
Project Nayuki
1cc4617d57 In TypeScript version: moved QrCode.drawCanvas() out of the library and into demo programs, slightly adapted some code, updated documentation comments. 2021-07-28 17:06:31 +00:00
Project Nayuki
6cd17bb9fb In Java version: moved QrCode.toSvgString() out of the library and into the runnable demo program, slightly adapted some code, updated documentation comments. 2021-07-28 17:06:27 +00:00
Project Nayuki
010410be02 In Java version: moved QrCode.toImage() out of the library and into the runnable demo program, slightly adapted some code, updated documentation comments. 2021-07-28 17:05:35 +00:00
Project Nayuki
1fd0216dfe Changed the word "black" to "dark" in {comments, local variables,} in order to match the vocabulary in the QR Code specification document. 2021-07-27 23:35:06 +00:00
Project Nayuki
99e7d59383 Changed the word "white" to "light" in {comments, local variables, a private C function} in order to match the vocabulary in the QR Code specification document. 2021-07-27 23:34:00 +00:00
Project Nayuki
0532c7a237 Merged. 2021-07-27 23:19:35 +00:00
Project Nayuki
2aed7af53e Updated field and method in C++ code in order to store Mode objects by pointer instead of value. 2021-07-27 23:19:30 +00:00
Project Nayuki
2c76b0a170 Updated copyright year in readme document. 2021-07-27 23:02:54 +00:00
Project Nayuki
aa32fe1235 Added more type annotations to Python tester programs. 2021-07-27 23:00:52 +00:00
Project Nayuki
27dd722961 Parenthesized most clauses of and/or expressions in Python code for clarity. 2021-07-27 22:54:44 +00:00
Project Nayuki
1ca1d43f1c Deleted Python module summary comment because static type hints make it redundant. 2021-07-27 22:49:42 +00:00
Project Nayuki
0ff7b57a81 Added type annotations to nearly all local variables in Python library code. 2021-07-27 22:48:26 +00:00
Project Nayuki
3c3aec6b9c Relaxed some Python function parameters from List[int] to Sequence[int]. 2021-07-27 22:34:31 +00:00
Project Nayuki
83300fd619 Updated private Python functions to operate on bytes instead of lists of integers, thus conveying the constrained value range more clearly. 2021-07-27 22:33:09 +00:00
Project Nayuki
e5d21aee09 Updated Python code so that public functions accept bytes or sequences of integers, removed some run-time type checks. 2021-07-27 22:27:50 +00:00
Project Nayuki
d11eb098cb Added more type annotations to class-level members in Python library code, continuing the work of commit 55dd3c881ea1. 2021-07-27 22:18:32 +00:00
Project Nayuki
772a311c56 Tweaked a bit of C++ code to use strict bounds checking for consistency. 2021-07-25 03:30:37 +00:00
Project Nayuki
68b2b7782b Simplified Java and C++ code to remove unnecessary this, also improving consistency with other field assignments, enabled by a local variable renaming in commit 67c62461d380. 2021-07-24 21:54:42 +00:00
Project Nayuki
a999dca15f Simplified an expression because C++11 natively supports for-each over a braced list, without needing to construct a typed object. 2021-07-01 04:35:23 +00:00
openharmony_ci
cff785c33b !8 【轻量级 PR】:update OAT.xml.
Merge pull request !8 from songcy-hw/N/A
OpenHarmony-v3.0-Beta1 OpenHarmony-v3.0-LTS OpenHarmony-v3.0.1-LTS OpenHarmony-v2.2-Beta2 OpenHarmony-2.0-Canary
2021-05-20 11:54:22 +08:00
songcy-hw
240d3c9360 update OAT.xml. 2021-05-19 16:26:56 +08:00
openharmony_ci
cfd56d2fda !5 sync diff with L2
Merge pull request !5 from songcy-hw/master
2021-05-18 11:17:20 +08:00
scyhssm
4971bd2b30 sync diff with L2 2021-05-18 09:53:08 +08:00
openharmony_ci
c08fca786e !1 Add issue and PR template for master
Merge pull request !1 from 马明帅/add_issus_pr_template_for_master
2021-04-30 15:04:07 +08:00
mamingshuai
0c829584aa add issue and pr template 2021-04-07 15:09:30 +08:00
mamingshuai
ef7ebfe2c8 update openharmony 1.0.1 OpenHarmony_release_v1.1.0 2021-03-11 18:38:29 +08:00
马明帅
e155f03448 Initial commit 2021-03-11 17:38:13 +08:00
Project Nayuki
8518684c0f Moved comments in Python code from field assignments to field declarations. 2021-01-25 23:23:00 +00:00
Project Nayuki
a807ee27db Added type annotations to instance fields in Python code. 2021-01-25 23:15:49 +00:00
Project Nayuki
f9d1172e29 Fixed the names of some methods in comments. 2021-01-25 23:11:54 +00:00
Project Nayuki
8cbd1f506a Changed Rust API to move the version min/max values into associated constants for its type. 2020-10-14 02:09:27 +00:00