Separate out ArgumentContextUtils.normalizeDoubleQuoted() 90/87690/1
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 22:43:36 +0000 (23:43 +0100)
commit16c1e79ba34029ce6811a54405356be742dcbb46
tree68c58c4eef6f814db4e3bc75ce9aeb249977ca87
parentd6ef64c5dccdf236cd4577cdb845602c6d5d5923
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