Project Nayuki
|
c8e1b0caed
|
Fixed example code in Rust documentation, related to commits a88f0942af and 3da57e5aa0 .
|
3 years ago |
Project Nayuki
|
fd425bf995
|
Publicized the Rust functions QrSegment.{is_numeric(),is_alphanumeric()}.
|
3 years ago |
Project Nayuki
|
0e80f23c04
|
Reordered QrSegment.{isNumeric(),isAlphanumeric()} in {C, C++, Rust} versions.
|
3 years ago |
Project Nayuki
|
764749bd8a
|
Added spaces around multiplication operators in QrCode.getAlignmentPatternPositions() for all language versions, for consistency with other code.
|
3 years ago |
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.
|
3 years ago |
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.
|
3 years ago |
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.
|
3 years ago |
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.
|
3 years ago |
Project Nayuki
|
f9d1172e29
|
Fixed the names of some methods in comments.
|
4 years ago |
Project Nayuki
|
8cbd1f506a
|
Changed Rust API to move the version min/max values into associated constants for its type.
|
4 years ago |
Project Nayuki
|
bafd258293
|
Clarified a few pieces of Rust code.
|
4 years ago |
Project Nayuki
|
d00cbd3585
|
Added static types to some variables in Rust code.
|
4 years ago |
Project Nayuki
|
43020cbd67
|
Fixed Rust code to avoid arithmetic overflow when a segment's bit length is very near usize::MAX.
|
4 years ago |
Project Nayuki
|
705ce44efd
|
Fixed arithmetic overflow in Rust code on platforms where usize is 16 bits wide.
|
4 years ago |
Project Nayuki
|
98963e5cba
|
Tweaked Rust code to narrow the bit width of QrCodeEcc.format_bits().
|
4 years ago |
Project Nayuki
|
fd849b188c
|
Updated package version numbers.
|
5 years ago |
Project Nayuki
|
2da5091674
|
Tweaked Rust code to add useful auto-derived traits to almost all structs.
|
5 years ago |
Project Nayuki
|
1439e8e4a5
|
Simplified some Rust code.
|
5 years ago |
Project Nayuki
|
6ea933f159
|
Refactored Rust code to collect some private functions into new private struct.
|
5 years ago |
Project Nayuki
|
29119d3f2e
|
Fixed typo, added blank line.
|
5 years ago |
Project Nayuki
|
fe992753d2
|
Tweaked Rust code to convert more integer casts from 'as' to 'from'.
|
5 years ago |
Project Nayuki
|
6e088f72d3
|
Added an assertion to QrCode.getNumRawDataModules() in all language versions.
|
5 years ago |
Project Nayuki
|
585e80e4f5
|
Slightly simplified Rust code so that for-loops and lambdas capture variables as value-copy instead of reference.
|
5 years ago |
Project Nayuki
|
e83ac1cd62
|
Simplified and clarified various pieces of Rust code.
|
5 years ago |
Project Nayuki
|
2136d88ac8
|
Tweaked Rust code to use inclusive-range for-loops where appropriate.
|
5 years ago |
Project Nayuki
|
9fdd05e64d
|
Simplified some pieces of Rust code.
|
5 years ago |
Project Nayuki
|
765527895c
|
Tightened some Rust variable scopes, simplified a bit of code.
|
5 years ago |
Project Nayuki
|
6007d92aaa
|
Tweaked Rust code to reduce redundant type declarations.
|
5 years ago |
Project Nayuki
|
eb115a9931
|
Tweaked Rust code to convert more integer casts from 'as' to 'from'.
|
5 years ago |
Project Nayuki
|
6431ef47fd
|
Tweaked Rust code to have safer integer lossless upcasts, thanks to clippy's diagnostics.
|
5 years ago |
Project Nayuki
|
621a77757e
|
Simplified miscellaneous Rust code, due to clippy linting.
|
5 years ago |
Project Nayuki
|
78ee34f9a6
|
Simplified some Rust methods to be pass-by-copy-value instead of pass-by-reference, thanks to clippy (linter)'s suggestions.
|
5 years ago |
Project Nayuki
|
1424d9f332
|
Simplified a bit of TypeScript and Rust code using for-each looping.
|
5 years ago |
Project Nayuki
|
50d00ebf76
|
Simplified Rust code using ?-operator on Option (Rust 1.22).
|
5 years ago |
Project Nayuki
|
20e904578e
|
Updated readme text in multiple programming language versions.
|
5 years ago |
Project Nayuki
|
8407d37839
|
Updated package version numbers.
|
5 years ago |
Project Nayuki
|
ee5e4ca121
|
Tweaked a few comments.
|
5 years ago |
Project Nayuki
|
b6aa563812
|
Tweaked a comment in QrCode.reedSolomonComputeDivisor() in 4 language versions.
|
5 years ago |
Project Nayuki
|
b5aaadf758
|
Demoted ReedSolomonGenerator from a class to a set of functions, and changed some names and comments, in all languages except C. This reduces code verbosity but doesn't change public APIs or visible behavior. The code organization is similar to the finder-like-pattern-detector feature.
|
5 years ago |
Project Nayuki
|
c5ad557eea
|
Updated the finder pattern detector logic in the other 6 language versions to match Java code.
|
5 years ago |
Project Nayuki
|
1ca214499b
|
Renamed a local variable in all language versions (although the Java version has different logic).
|
5 years ago |
Project Nayuki
|
fd083f70e8
|
Reordered calls to applyMask()/drawFormatBits() for conceptual clarity, without changing output (because masks don't affect format bits), in all language versions.
|
6 years ago |
Project Nayuki
|
22319bf90f
|
Tweaked Rust code to inline handle_constructor_masking().
|
6 years ago |
Project Nayuki
|
86149fa1b2
|
Updated Python and Rust package version number.
|
6 years ago |
Project Nayuki
|
af872343c0
|
Completely rewrote the algorithm for detecting finder-like patterns, making it more accurate and compliant with the QR Code specification, in all languages.
|
6 years ago |
Project Nayuki
|
5ac0e2a938
|
Inverted some if-else statements in QrCode.getPenaltyScore() without changing behavior, in all languages.
|
6 years ago |
Project Nayuki
|
111b20b2b9
|
Tweaked logic in QrCode.getPenaltyScore() for future expansion, without changing behavior, in all languages.
|
6 years ago |
Project Nayuki
|
a14de3d959
|
Renamed colorX, colorY local variables in QrCode.getPenaltyScore() to just color, in all language versions.
|
6 years ago |
Project Nayuki
|
025400e706
|
Tweaked a package-private Rust function to not be public.
|
6 years ago |
Project Nayuki
|
c36c4a28eb
|
Updated Java, C++, Python, Rust worker programs to catch the new exception; removed error message string comparisons.
|
6 years ago |