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
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
bytevalue at the specified index. An index ranges from zero tolength - 1. The firstbytevalue 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
intECI value at the specified index. An index ranges from zero tolength - 1. The firstbytevalue 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
CharSequencethat is a subsequence of this sequence. The subsequence starts with thecharvalue at the specified index and ends with thecharvalue at indexend - 1. The length (inchars) of the returned sequence isend - start, so ifstart == endthen 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