enum uint matchLenMax = 0x80;

We shouldn't use ALL_CAPS anywhere. Also I assume these should be private.