shiftTable property

List<List<int>> shiftTable
final

Implementation

static final List<List<int>> shiftTable = List.generate(
  6,
  (idx) => List.generate(6, (index) {
    if (idx == HighLevelEncoderMode.upper.index) {
      if (index == HighLevelEncoderMode.punct.index) return 0;
    } else if (idx == HighLevelEncoderMode.lower.index) {
      if (index == HighLevelEncoderMode.punct.index) return 0;
      if (index == HighLevelEncoderMode.upper.index) return 28;
    } else if (idx == HighLevelEncoderMode.mixed.index) {
      if (index == HighLevelEncoderMode.punct.index) return 0;
    } else if (idx == HighLevelEncoderMode.digit.index) {
      if (index == HighLevelEncoderMode.punct.index) return 0;
      if (index == HighLevelEncoderMode.upper.index) return 15;
    }

    return -1;
  }),
);