mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 21:02:35 +00:00
rename helper methods
This commit is contained in:
@@ -52,9 +52,8 @@ impl UPCEANReader for EAN8Reader {
|
||||
while x < 4 && rowOffset < end {
|
||||
let bestMatch =
|
||||
self.decodeDigit(row, &mut counters, rowOffset, &upc_ean_reader::L_PATTERNS)?;
|
||||
resultString.push(
|
||||
char::from_u32('0' as u32 + bestMatch as u32).ok_or(Exceptions::parseEmpty())?,
|
||||
);
|
||||
resultString
|
||||
.push(char::from_u32('0' as u32 + bestMatch as u32).ok_or(Exceptions::parse)?);
|
||||
|
||||
rowOffset += counters.iter().sum::<u32>() as usize;
|
||||
|
||||
@@ -69,9 +68,8 @@ impl UPCEANReader for EAN8Reader {
|
||||
while x < 4 && rowOffset < end {
|
||||
let bestMatch =
|
||||
self.decodeDigit(row, &mut counters, rowOffset, &upc_ean_reader::L_PATTERNS)?;
|
||||
resultString.push(
|
||||
char::from_u32('0' as u32 + bestMatch as u32).ok_or(Exceptions::parseEmpty())?,
|
||||
);
|
||||
resultString
|
||||
.push(char::from_u32('0' as u32 + bestMatch as u32).ok_or(Exceptions::parse)?);
|
||||
|
||||
rowOffset += counters.iter().sum::<u32>() as usize;
|
||||
x += 1;
|
||||
|
||||
Reference in New Issue
Block a user