Separate out ArgumentContextUtils.normalizeDoubleQuoted() 83/87783/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 13 Feb 2020 00:31:42 +0000 (01:31 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 16 Feb 2020 09:51:20 +0000 (10:51 +0100)
commitea263de2b32c699f28f8a6846e520ffeb47a3ccf
tree383fb4cf19c34947d5b5d5cec2374796b672b46c
parent2e80c8e4d29a622b258795344fc785c5d80aff5a
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