Function state_change

const fn state_change(state: State, byte: u8) -> (State, Action)

Transition to next State

Note: This does not directly support UTF-8.

Note: When State::Anywhere is returned, revert back to the prior state.