Frank W. Miller wrote:
> You can't really just check for quotes out of context. In some contexts
> they might not always come in pairs.
>
> FM: Where does the syntax allow for unpaired quotes? I did a quick search
> on 3261 for DQUOT and didn't see any place where they are allowed to be
> unmatched. Forgive my ignorance?
Well, one place is in comments. I'm not sure if there are others. But
comments are a bitch. They are only valid in headers that specify them.
I can't see any simplified rule for figuring out when you are in a
comment. (I'm certain that comments are a feature of sip that Iñaki will
question. I question the reason for them too.)
But of course quotes can appear in bodies, with any restrictions being
imposed solely by the Content-Type of the body.
> And they may be escaped in funny ways.
> FM: If they are escaped, doesn't that mean they are already inside another
> set of quotes? The escaped sequence will have to check for escaped
> characters?!
Well, there is at least the \" escaping in quoted-string. Maybe that is
all that is relevant. You can deal with that *if* you can figure out
that you are in a quoted-string, which requires that you can tell that a
quote you find actually introduces a quoted-string, rather than being
part of a comment or some other thing (tbd, maybe non-existent) that
doesn't introduce a quoted-string.
Paul
_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors