Gets the code for a pattern, or null if not in the dictionary.
int? getCode(String pattern) => _encodeMap[pattern];