C# Class Mictlanix.BE.Web.Utils.Code128Code

Static tools for determining codes for individual characters in the content
ファイルを表示 Open project: mictlanix/mbe Class Usage Examples

Public Methods

Method Description
CharCompatibleWithCodeset ( int CharAscii, CodeSet currcs ) : bool

Determine if a character can be represented in a given codeset

CodeValueForChar ( int CharAscii ) : int

Gets the integer code128 code value for a character (assuming the appropriate code set)

CodesForChar ( int CharAscii, int LookAheadAscii, CodeSet &CurrCodeSet ) : int[]

Get the Code128 code value(s) to represent an ASCII character, with optional look-ahead for length optimization

CodesetAllowedForChar ( int CharAscii ) : CodeSetAllowed

Tells us which codesets a given character value is allowed in

StartCodeForCodeSet ( CodeSet cs ) : int

Return the appropriate START code depending on the codeset we want to be in

StopCode ( ) : int

Return the Code128 stop code

Method Details

CharCompatibleWithCodeset() public static method

Determine if a character can be represented in a given codeset
public static CharCompatibleWithCodeset ( int CharAscii, CodeSet currcs ) : bool
CharAscii int character to check for
currcs CodeSet codeset context to test
return bool

CodeValueForChar() public static method

Gets the integer code128 code value for a character (assuming the appropriate code set)
public static CodeValueForChar ( int CharAscii ) : int
CharAscii int character to convert
return int

CodesForChar() public static method

Get the Code128 code value(s) to represent an ASCII character, with optional look-ahead for length optimization
public static CodesForChar ( int CharAscii, int LookAheadAscii, CodeSet &CurrCodeSet ) : int[]
CharAscii int The ASCII value of the character to translate
LookAheadAscii int The next character in sequence (or -1 if none)
CurrCodeSet CodeSet The current codeset, that the returned codes need to follow; /// if the returned codes change that, then this value will be changed to reflect it
return int[]

CodesetAllowedForChar() public static method

Tells us which codesets a given character value is allowed in
public static CodesetAllowedForChar ( int CharAscii ) : CodeSetAllowed
CharAscii int ASCII value of character to look at
return CodeSetAllowed

StartCodeForCodeSet() public static method

Return the appropriate START code depending on the codeset we want to be in
public static StartCodeForCodeSet ( CodeSet cs ) : int
cs CodeSet The codeset you want to start in
return int

StopCode() public static method

Return the Code128 stop code
public static StopCode ( ) : int
return int