addEdges static method
void
addEdges()
Implementation
static void addEdges(
String stringToEncode,
ECIEncoderSet encoderSet,
List<List<InputEdge?>> edges,
int from,
InputEdge? previous,
int fnc1,
) {
// chr
final ch = stringToEncode.codeUnitAt(from);
int start = 0;
int end = encoderSet.length;
if (encoderSet.priorityEncoderIndex >= 0 &&
(ch == fnc1 ||
encoderSet.canEncode(ch, encoderSet.priorityEncoderIndex))) {
start = encoderSet.priorityEncoderIndex;
end = start + 1;
}
for (int i = start; i < end; i++) {
if (ch == fnc1 || encoderSet.canEncode(ch, i)) {
addEdge(edges, from + 1, InputEdge(ch, encoderSet, i, previous, fnc1));
}
}
}