Commit Graph

204 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
17e1a8a6d4 Marked Rust code to forbid unsafe. 2022-01-07 17:40:03 +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
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
8bd5ed46b5 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
fb9638d591 Reformatted a long function signature in Rust. 2021-11-12 03:43:07 +00:00
Project Nayuki
253ef19a4d Reformatted some Rust code so that the expressions surrounding .. have no spaces around operators. 2021-11-12 03:31:18 +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
86a49ba597 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
67ddbb6304 Clarified a few bits of Rust code. 2021-11-06 23:09:37 +00:00
Project Nayuki
d239c32c45 Simplified a few comparisons in Rust code. 2021-11-06 23:08:44 +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
f6f91e4a7f Removed unhelpful assertion error messages from Rust code. 2021-11-06 16:48:52 +00:00
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
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 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
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 6c1f967894. 2021-11-04 15:18:34 +00:00
Project Nayuki
599b637c73 Fixed example Rust code in documentation comments, due to commit 6c1f967894. 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
Project Nayuki
db4ad0bda8 Hyphenated a phrase. 2021-09-05 03:23:30 +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
c8e1b0caed Fixed example code in Rust documentation, related to commits a88f0942af and 3da57e5aa0. 2021-08-01 00:18:51 +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
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
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
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
mamingshuai
ef7ebfe2c8 update openharmony 1.0.1 2021-03-11 18:38:29 +08: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
Project Nayuki
bafd258293 Clarified a few pieces of Rust code. 2020-10-14 02:02:06 +00:00
Project Nayuki
d00cbd3585 Added static types to some variables in Rust code. 2020-10-14 01:58:56 +00:00
Project Nayuki
43020cbd67 Fixed Rust code to avoid arithmetic overflow when a segment's bit length is very near usize::MAX. 2020-10-14 01:38:21 +00:00
Project Nayuki
705ce44efd Fixed arithmetic overflow in Rust code on platforms where usize is 16 bits wide. 2020-10-14 01:34:20 +00:00
Project Nayuki
98963e5cba Tweaked Rust code to narrow the bit width of QrCodeEcc.format_bits(). 2020-10-14 01:27:54 +00:00
Project Nayuki
fd849b188c Updated package version numbers. 2020-03-05 17:46:11 +00:00
Project Nayuki
2da5091674 Tweaked Rust code to add useful auto-derived traits to almost all structs. 2020-01-29 17:07:07 +00:00
Project Nayuki
1439e8e4a5 Simplified some Rust code. 2020-01-27 00:53:27 +00:00