Class DecodedEscapes

java.lang.Object
org.ek9lang.compiler.support.literals.DecodedEscapes
All Implemented Interfaces:
Function<String,String>, UnaryOperator<String>

public final class DecodedEscapes extends Object implements UnaryOperator<String>
THE decoding of the escape sequences in an EK9 String literal's text (quotes already stripped): \t, \n, A, \101, etc. resolve to their characters; an unrecognised escape (\T) and a malformed unicode escape pass through as written. The input comes back unchanged when it holds no backslash. Every reader of a String literal's value goes through this one decoder (constants, text bodies, interpolated parts, constraints).