This commit makes a number of parts of wezterm's core
parsing functionality no_std compatible, but requiring alloc.
In the no_std environment, several lookup tables that would
normally have been used to accelerate some operations are
not available and we instead fall back to an O(n) operation.