visualizeControlChars
public static String visualizeControlChars(String in,
boolean showSpace)
Utility function that returns a representation of the given string with
control characters replaced with unicode symbols representing those
control characters. Uses ↵ for newline (\n), ⇥ for tab (\t), ␡ for
delete, otherwise symbols from ␀ to ␟ and � for other control characters.
- Parameters:
in
- The string to convert.
showSpace
- if true, space characters are replaced with ␣.
- Returns:
- A string of equal length, with control characters replaced.