mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 21:02:35 +00:00
most minimal pass
This commit is contained in:
@@ -98,7 +98,7 @@ pub fn isExtendedASCII(ch: char, fnc1: Option<char>) -> bool {
|
|||||||
true
|
true
|
||||||
};
|
};
|
||||||
is_fnc1 && ch as u8 >= 128 //&& ch as u8 <= 255
|
is_fnc1 && ch as u8 >= 128 //&& ch as u8 <= 255
|
||||||
// return ch != fnc1 && ch as u8 >= 128 && ch as u8 <= 255;
|
// return ch != fnc1 && ch as u8 >= 128 && ch as u8 <= 255;
|
||||||
}
|
}
|
||||||
|
|
||||||
fn isInC40Shift1Set(ch: char) -> bool {
|
fn isInC40Shift1Set(ch: char) -> bool {
|
||||||
@@ -1231,7 +1231,7 @@ impl Edge {
|
|||||||
Mode::EDF => assert!(self.mode == Mode::EDF), //The rightmost EDIFACT edge always contains an unlatch character
|
Mode::EDF => assert!(self.mode == Mode::EDF), //The rightmost EDIFACT edge always contains an unlatch character
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(vec![0])
|
Ok(Vec::new())
|
||||||
}
|
}
|
||||||
|
|
||||||
// Important: The function does not return the length bytes (one or two) in case of B256 encoding
|
// Important: The function does not return the length bytes (one or two) in case of B256 encoding
|
||||||
@@ -1320,9 +1320,9 @@ impl RXingResult {
|
|||||||
randomizePostfixLength.push(bytesAL.len());
|
randomizePostfixLength.push(bytesAL.len());
|
||||||
randomizeLengths.push(size);
|
randomizeLengths.push(size);
|
||||||
}
|
}
|
||||||
if Edge::getPreviousStartMode(current.previous.clone()) != current.getMode() {
|
//if Edge::getPreviousStartMode(current.previous.clone()) != current.getMode() {
|
||||||
Self::prepend(¤t.getLatchBytes()?, &mut bytesAL);
|
Self::prepend(¤t.getLatchBytes()?, &mut bytesAL);
|
||||||
}
|
//}
|
||||||
size = 0;
|
size = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user