Packageardisia.components.barCode.specifications
Classpublic class Code93
InheritanceCode93 Inheritance Object

See http://en.wikipedia.org/wiki/Code_93

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.



Public Methods
 MethodDefined By
  
encodeForCode93(data:String):String
[static] Encodes a string for the Code 93 specification.
Code93
Protected Methods
 MethodDefined 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
Method Detail
encodeForCode93()method
public static function encodeForCode93(data:String):String

Encodes a string for the Code 93 specification.

Parameters

data:String — the string to encode

Returns
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

Returns
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

Returns
int — the int index, -1 if not found