Skip to main content

phrase

Function phrase 

Source
pub fn phrase(input: &[u8]) -> IResult<&[u8], Phrase<'_>>
Expand description

Phrase (including obsolete syntax)

   phrase          =   1*(encoded-word / word) / obs-phrase
   obs-phrase      =   word *(word / "." / CFWS)

(encoded-word comes from RFC2047)

The grammar above is equivalent to the following, which is what we parse:

  phrase       =  1*phrase_token
  phrase_token =  encoded-word / word / ([CFWS] "." [CFWS])