*HTTP RFC 1945 [[HTTP/1.0]] によると、 =quoted-string = ( <"> *(qdtext) <"> ) =qdtext = and CTLs, but including LWS> RFC 2616 [[HTTP/1.1]] によると、 =quoted-string = ( <"> *(qdtext | quoted-pair ) <"> ) =qdtext = > =quoted-pair = "\" CHAR HTTP/1.0 では quoted-pair が使えなかったと。それで HTTP/1.1 でも使えるけど使えないみたいな玉虫色。 See [[メッセージ頭のcomment]] の HTTP のとこ。 =http1.0.quoted-string = <"> http1.0.qcontent <"> =http1.0.qcontent = *http1.0.qtext =http1.0.qtext = %x20-21 / %x23-%x7E / FWS =http1.1.quoted-string = <"> http1.1.qcontent <"> =http1.1.qcontent = *( http1.1.qtext / http.quoted-pair ) =http1.1.qtext = %x00-21 / %x23-5B / %x5D-FF =http.quoted-string = "\" %x00-7F たぶん HTTP/1.1 でも qdtext に LWS が使えると解釈したほーがいいんだろうけど、 HTTP だと単独の CR が使えるから BNF がちょいとばかり複雑になるなあ。 *SIP HTTP を元にしてる SIP だけど、びみょーに違う。いやらしーのは HTTP/1.1 と同じ。(たぶん何も考えずに写したんだ。) =quoted-string = ( <"> *(qdtext | quoted-pair ) <"> ) =qdtext = > =quoted-pair = " \ " CHAR " \ " はたぶん "\" の間違いだ。そー信じたい。 =sip.quoted-string = <"> sip.quoted-string <"> =sip.qcontent = *( sip.qtext / http.quoted-pair ) =sip.qtext = %x20-21 / %x23-5B / %x5D-7F / utf8-xtra-char / FWS *See also -[[MIME]] -[[HTTP]] -[[RFC822と仲間達の頭領域名]] -[[メッセージの頭]] --[[メッセージ頭のcomment]]