BCKCodeCharacter Class Reference
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.
Properties
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