Commit Graph

220 Commits

Author SHA1 Message Date
guanzengkun
16f7e447e6 Description: upgrade qrcode from 1.7.0 to 1.8.0
IssueNo: https://gitee.com/openharmony/third_party_qrcodegen/issues/I6O20W
Feature or Bugfix: Feature
Binary Source:from third patry
Signed-off-by: guanzengkun <guanzengkun@huawei.com>
2023-04-27 15:39:15 +08:00
Project Nayuki
720f62bddb Updated package version numbers. 2022-04-17 04:14:51 +00:00
Project Nayuki
daa3114dcf Replaced str.format() with f-strings in Python code. 2022-01-07 06:00:18 +00:00
Project Nayuki
e6ef02e0f5 Removed run-time type assertions in Python code in favor of static type hints. 2022-01-07 05:54:28 +00:00
pssea
e9104a60b9 Description: upgrade qrcode from 1.6.0 to 1.7.0
IssueNo: https://gitee.com/openharmony/graphic_ui/issues/I4NPYK
Feature or Bugfix: Feature
Binary Source:No
Signed-off-by: lizhiqi <lizhiqi1@huawei.com>
2021-12-22 21:00:55 +08:00
Project Nayuki
5990e6a99c - 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
d02fe511cc Updated the content of language-specific readme files and package-level documentation comments. 2021-12-01 05:58:37 +00:00
Project Nayuki
df44e259d1 Added a paragraph to partially synchronize all readme files and package-level documentation comments. 2021-12-01 05:56:12 +00:00
Project Nayuki
7a052cc5b2 Removed references to other programming languages within language-specific overview/readme text. 2021-11-25 04:45:32 +00:00
Project Nayuki
50f0c4b5bc 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
ad537b93d9 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
c7ab2582aa Added value range assertions to QrCode.getPenaltyScore(), in all language ports. 2021-11-06 06:15:19 +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 67c62461d3), 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
db4ad0bda8 Hyphenated a phrase. 2021-09-05 03:23:30 +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
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
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
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
89895daf1d Changed Java classpath in Python batch tester to match Maven's convention. 2021-07-28 17:09:18 +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
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
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 55dd3c881e. 2021-07-27 22:18:32 +00:00
mamingshuai
ef7ebfe2c8 update openharmony 1.0.1 2021-03-11 18:38:29 +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
08ac806145 Updated Python setup files due to commit f93ce5217e. 2020-06-09 17:52:12 +00:00
Project Nayuki
c3a72b7333 Fixed handling of type annotations in Python code (due to commit 55dd3c881e). 2020-06-09 15:05:02 +00:00
Project Nayuki
6951a7e49e Fixed regex usage in Python code (due to commit 9ed47110a5). 2020-06-09 15:04:21 +00:00
Project Nayuki
9ed47110a5 Simplified regular expressions for Python 3. 2020-05-08 16:02:06 +00:00
Project Nayuki
55dd3c881e Added type annotations to all Python functions and methods, and almost all global variables. 2020-04-24 18:07:59 +00:00
Project Nayuki
49f9ea0890 Tweaked Python code to allow static type checking, without changing behavior. 2020-04-24 18:06:22 +00:00
Project Nayuki
979de6d335 Simplified a bit of Python code. 2020-04-24 17:57:23 +00:00
Project Nayuki
f93ce5217e Simplified code by removing support for Python 2, leaving only support for Python 3. 2020-04-24 17:40:17 +00:00
Project Nayuki
fd849b188c Updated package version numbers. 2020-03-05 17:46:11 +00:00
Project Nayuki
13a25580a3 Simplified QrCode.getPenalty() in all language versions except Rust, related to commit 1439e8e4a5. 2020-01-29 17:52:21 +00:00
Project Nayuki
fd6917601d Fixed path in batch tester, due to commit f759146df3. 2020-01-27 01:01:37 +00:00
Project Nayuki
6e088f72d3 Added an assertion to QrCode.getNumRawDataModules() in all language versions. 2019-09-13 04:09:42 +00:00
Project Nayuki
20e904578e Updated readme text in multiple programming language versions. 2019-07-30 20:44:38 +00:00
Project Nayuki
d5d431a2d4 Renamed a local variable in Python code. 2019-07-30 18:54:51 +00:00