mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
encoder test pass
This commit is contained in:
@@ -278,22 +278,7 @@ impl HighLevelEncoder {
|
||||
b':' if next_char == b' ' => 5,
|
||||
_ => 0,
|
||||
};
|
||||
// switch (text[index]) {
|
||||
// case '\r':
|
||||
// pairCode = nextChar == '\n' ? 2 : 0;
|
||||
// break;
|
||||
// case '.' :
|
||||
// pairCode = nextChar == ' ' ? 3 : 0;
|
||||
// break;
|
||||
// case ',' :
|
||||
// pairCode = nextChar == ' ' ? 4 : 0;
|
||||
// break;
|
||||
// case ':' :
|
||||
// pairCode = nextChar == ' ' ? 5 : 0;
|
||||
// break;
|
||||
// default:
|
||||
// pairCode = 0;
|
||||
// }
|
||||
|
||||
if pair_code > 0 {
|
||||
// We have one of the four special PUNCT pairs. Treat them specially.
|
||||
// Get a new set of states for the two new characters.
|
||||
|
||||
@@ -87,7 +87,6 @@ impl State {
|
||||
let eci_digits = encoding::all::ISO_8859_1
|
||||
.encode(&format!("{}", eci), encoding::EncoderTrap::Strict)
|
||||
.unwrap();
|
||||
dbg!(format!("{}", eci));
|
||||
// let eciDigits = Integer.toString(eci).getBytes(StandardCharsets.ISO_8859_1);
|
||||
token.add(eci_digits.len() as i32, 3); // 1-6: number of ECI digits
|
||||
for eci_digit in &eci_digits {
|
||||
|
||||
Reference in New Issue
Block a user