Changed func name hasSpaceToken to hasBefore.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>
Added hasLineFeedAfter().

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>
Added test pattern of switch.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>