Separate out ArgumentContextUtils.normalizeDoubleQuoted() 55/87655/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 13 Feb 2020 00:31:42 +0000 (01:31 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 13 Feb 2020 02:02:52 +0000 (03:02 +0100)
commit9b5b818a2234ea79f79b963d8c0f2cdba6b0dc98
tree6cf3387bc676aa6281b215d780b2467dff9bce64
parent195338a3a4ddd4dae520aa64fb91f5e144bd94d9
Separate out ArgumentContextUtils.normalizeDoubleQuoted()

appendString() is really just a lexer-to-logic dispatch method,
which we may end up moving. Even if not, it provides benefits
in being small and well auditable, as well as being readily
inlineable.

A nice side-effect here is that we get the control over both
whitespace and unescaping, which makes it obvious we can check
for existing escapes and then go into dealing with them, with
a known position of the first backslash.

JIRA: YANGTOOLS-1079
Change-Id: I157795634eb6caea10a819feb4a50fb9b394b267
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/repo/ArgumentContextUtils.java