upce constant

Map<int, int> const upce

UPC-A to UPC-E conversion

Implementation

static const upce = <int, int>{
  0x30: 0x38, // EEEOOO | OOOEEE
  0x31: 0x34, // EEOEOO | OOEOEE
  0x32: 0x2c, // EEOOEO | OOEEOE
  0x33: 0x1c, // EEOOOE | OOEEEO
  0x34: 0x32, // EOEEOO | OEOOEE
  0x35: 0x26, // EOOEEO | OEEOOE
  0x36: 0xe, // EOOOEE | OEEEOO
  0x37: 0x2a, // EOEOEO | OEOEOE
  0x38: 0x1a, // EOEOOE | OEOEEO
  0x39: 0x16, // EOOEOE | OEEOEO
};