MinimalECIInput class

Class that converts a character string into a sequence of ECIs and bytes

The implementation uses the Dijkstra algorithm to produce minimal encodings

@author Alex Geller

Implemented types
Implementers

Constructors

MinimalECIInput(String stringToEncode, Encoding? priorityCharset, int fnc1)
Constructs a minimal input

Properties

bytes List<int>
getter/setter pair
fnc1 int
final
fnc1Character int
no setter
hashCode int
The hash code for this object.
no setterinherited
length int
Returns the length of this input. The length is the number of bytes, FNC1 characters or ECIs in the sequence.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

charAt(int index) int
Returns the byte value at the specified index. An index ranges from zero to length - 1. The first byte value of the sequence is at index zero, the next at index one, and so on, as for array indexing.
override
getECIValue(int index) int
Returns the int ECI value at the specified index. An index ranges from zero to length - 1. The first byte value of the sequence is at index zero, the next at index one, and so on, as for array indexing.
override
haveNCharacters(int index, int n) bool
override
isECI(int index) bool
Determines if a value is an ECI
override
isFNC1(int index) bool
Determines if a value is the FNC1 character
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subSequence(int start, int end) String
Returns a CharSequence that is a subsequence of this sequence. The subsequence starts with the char value at the specified index and ends with the char value at index end - 1. The length (in chars) of the returned sequence is end - start, so if start == end then an empty sequence is returned.
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

costPerECI int
final

Static Methods

addEdge(List<List<InputEdge?>> edges, int to, InputEdge edge) → void
addEdges(String stringToEncode, ECIEncoderSet encoderSet, List<List<InputEdge?>> edges, int from, InputEdge? previous, int fnc1) → void
encodeMinimally(String stringToEncode, ECIEncoderSet encoderSet, int fnc1) List<int>