Package | ardisia.components.barCode.specifications |
Class | public class Code93 |
Inheritance | Code93 Object |
Code 93 is designed to encode 26 upper case letters, 10 digits and 7 special characters. Lowercase characters are encoded as uppercase characters.
This encoder does not support the full range (beyond the first 43 chars).
2 digit checksum. The first is the "C" checksum, and the second is the "K" checksum.
Method | Defined By | ||
---|---|---|---|
encodeForCode93(data:String):String [static]
Encodes a string for the Code 93 specification. | Code93 |
Method | Defined By | ||
---|---|---|---|
getCheckDigit(data:String):String [static]
Calculates and returns the check digit. | Code93 | ||
getIndex(symbol:String):int [static]
Returns the index in the digitEncoding array where the passed symbol
is defined. | Code93 |
encodeForCode93 | () | method |
public static function encodeForCode93(data:String):String
Encodes a string for the Code 93 specification.
Parameters
data:String — the string to encode
|
String — a String of encoded data
|
getCheckDigit | () | method |
protected static function getCheckDigit(data:String):String
Calculates and returns the check digit. Assumes that the string has been sanitized. See http://www.barcodeisland.com/code93.phtml for a good explanation of how it is calculated.
Parameters
data:String |
String — a String of the check digit
|
getIndex | () | method |
protected static function getIndex(symbol:String):int
Returns the index in the digitEncoding array where the passed symbol is defined.
Parameters
symbol:String — the symbol to search for in the digitEncoding array
|
int — the int index, -1 if not found
|