C# Class ZXing.OneD.UPCEReader

Implements decoding of the UPC-E format.

Thisis a great reference for UPC-E information.

Sean Owen
Inheritance: ZXing.OneD.UPCEANReader
ファイルを表示 Open project: Redth/ZXing.Net.Mobile Class Usage Examples

Private Properties

Property Type Description
determineNumSysAndCheckDigit bool

Public Methods

Method Description
UPCEReader ( ) : System

Initializes a new instance of the UPCEReader class.

convertUPCEtoUPCA ( String upce ) : String

Expands a UPC-E value back into its full, equivalent UPC-A code value. UPC-E code as string of digits equivalent UPC-A code as string of digits

Protected Methods

Method Description
checkChecksum ( String s ) : bool

see checkStandardUPCEANChecksum(String)

decodeEnd ( BitArray row, int endStart ) : int[]

Decodes the end.

decodeMiddle ( BitArray row, int startRange, StringBuilder result ) : int

Decodes the middle.

Private Methods

Method Description
determineNumSysAndCheckDigit ( StringBuilder resultString, int lgPatternFound ) : bool

Determines the num sys and check digit.

Method Details

UPCEReader() public method

Initializes a new instance of the UPCEReader class.
public UPCEReader ( ) : System
return System

checkChecksum() protected method

see checkStandardUPCEANChecksum(String)
protected checkChecksum ( String s ) : bool
s String
return bool

convertUPCEtoUPCA() public static method

Expands a UPC-E value back into its full, equivalent UPC-A code value. UPC-E code as string of digits equivalent UPC-A code as string of digits
public static convertUPCEtoUPCA ( String upce ) : String
upce String
return String

decodeEnd() protected method

Decodes the end.
protected decodeEnd ( BitArray row, int endStart ) : int[]
row ZXing.Common.BitArray The row.
endStart int The end start.
return int[]

decodeMiddle() protected method

Decodes the middle.
protected decodeMiddle ( BitArray row, int startRange, StringBuilder result ) : int
row ZXing.Common.BitArray The row.
startRange int The start range.
result StringBuilder The result.
return int