Inherits from BCKCodeCharacter : NSObject
Declared in BCKCode128CodeCharacter.h

Overview

Specialized class of BCKCodeCharacter used for generating Code128 codes.

Class Methods

characterAtPosition:

Return the character representation for a given index in the code table. Note: the Code128 version does not matter here because we are interested in binary string at given position.

+ (BCKCode128CodeCharacter *)characterAtPosition:(NSUInteger)position

Parameters

position

The position of the character to return.

Return Value

The content code character.

Declared In

BCKCode128CodeCharacter.h

codeCharacterForCharacter:codeVersion:

Generates a code character to represent a content character.

+ (instancetype)codeCharacterForCharacter:(NSString *)character codeVersion:(BCKCode128Version)codeVersion

Parameters

character

The character to encode.

codeVersion

The Code128 version to use.

Return Value

The content code character.

Declared In

BCKCode128CodeCharacter.h

startCodeForVersion:

Generates a start code for a particular Code128 version.

+ (BCKCode128CodeCharacter *)startCodeForVersion:(BCKCode128Version)codeVersion

Parameters

codeVersion

The Code128 version used.

Return Value

The start code character

Declared In

BCKCode128CodeCharacter.h

stopCharacter

Generates a Code128 stop character.

+ (BCKCode128CodeCharacter *)stopCharacter

Return Value

The stop marker code character.

Declared In

BCKCode128CodeCharacter.h

switchCodeToVersion:

Returns the control character for switching barcodes to a specific version of Code128.

+ (BCKCode128CodeCharacter *)switchCodeToVersion:(BCKCode128Version)targetVersion

Parameters

targetVersion

The Code 128 version to switch to.

Return Value

The character to alter subsequent characters' type.

Declared In

BCKCode128CodeCharacter.h

Instance Methods

position

Returns the character’s position in the Code128 table.

- (NSUInteger)position

Return Value

The position of the character.

Declared In

BCKCode128CodeCharacter.h