iso-7064-0.2.2 has been yanked.
A Rust implementation of ISO/IEC 7064:2003 Check character systems
This crate provides no_std-compatible implementations of the check character
(digit) systems specified by ISO/IEC 7064:2003.
use ;
assert_eq!;
assert_eq!;
assert!;
assert!;
assert!;
assert!;
let mut buf = Stringfrom;
MOD1271_36.protect_lax;
assert_eq!;
This crate supports all the eight check character systems as shown below specified by the standard:
| System | Type | Input string | Check character(s) |
|---|---|---|---|
| ISO/IEC 7064, MOD 11-2 | Pure | Numeric (0-9) |
1 digit or 'X' (0-9X) |
| ISO/IEC 7064, MOD 37-2 | Pure | Alphanumeric (0-9A-Z) |
1 digit, letter, or '*' (0-9A-Z*) |
| ISO/IEC 7064, MOD 97-10 | Pure | Numeric (0-9) |
2 digits (0-9) |
| ISO/IEC 7064, MOD 661-26 | Pure | Alphabetic (A-Z) |
2 letters (A-Z) |
| ISO/IEC 7064, MOD 1271-36 | Pure | Alphanumeric (0-9A-Z) |
2 digits or letters (0-9A-Z) |
| ISO/IEC 7064, MOD 11,10 | Hybrid | Numeric (0-9) |
1 digit (0-9) |
| ISO/IEC 7064, MOD 27,26 | Hybrid | Alphabetic (A-Z) |
1 letter (A-Z) |
| ISO/IEC 7064, MOD 37,36 | Hybrid | Alphanumeric (0-9A-Z) |
1 digit or letter (0-9A-Z) |
This library also provides support for the variant of MOD 97-10 used in the International Bank Account Number (IBAN).
Crate features
alloc(enabled by default) enables APIs operating overString.
License
Licensed under the Apache License, Version 2.0.