more minimal encoder functions pass

This commit is contained in:
Henry Schimke
2022-11-02 10:42:10 -05:00
parent 6935b9045d
commit 9b25b08745
3 changed files with 7 additions and 5 deletions

View File

@@ -312,7 +312,8 @@ impl MinimalECIInput {
encoderSet: &ECIEncoderSet,
fnc1: Option<&str>,
) -> Vec<u16> {
let inputLength = stringToEncode.chars().count();
// let inputLength = stringToEncode.chars().count();
let inputLength = stringToEncode.graphemes(true).count();
// Array that represents vertices. There is a vertex for every character and encoding.
let mut edges = vec![vec![None; encoderSet.len()]; inputLength + 1]; //InputEdge[inputLength + 1][encoderSet.length()];