If the character was preceded by a percent sign, the mod flag is set, and there is a simple switch statement using the following character.