Inherits from NSObject
Declared in BCKCodeCharacter.h

Overview

Root class representing a code character. Code characters can be markers, spacing, start/stop, check digits or regular (alpha-)numeric characters.

Tasks

Creating Characters

Enumerating Bars

Getting Information about Code Characters

Properties

barString

The array of bars representing the character

@property (nonatomic, readonly) BCKBarString *barString

Declared In

BCKCodeCharacter.h

marker

Whether the receiver is a marker character, as opposed to being a regular (alpha-)numeric character or check digit.

@property (nonatomic, readonly, getter=isMarker) BOOL marker

Declared In

BCKCodeCharacter.h

Instance Methods

enumerateBarsUsingBlock:

Enumerates the bars of the character’s Bar String from left to right.

- (void)enumerateBarsUsingBlock:(void ( ^ ) ( BCKBarType barType , BOOL isBar , NSUInteger idx , BOOL *stop ))block

Parameters

block

The enumeration block that gets executed for each bar.

Declared In

BCKCodeCharacter.h

initWithBars:isMarker:

Creates a new character with an array of given bars and whether it is a marker character.

- (instancetype)initWithBars:(BCKBarString *)barString isMarker:(BOOL)isMarker

Parameters

barString

The Bar String.

isMarker

Whether the character acts as a marker or a regular character.

Declared In

BCKCodeCharacter.h