• Home
  • Raw
  • Download

Lines Matching +full:semi +full:- +full:structured

22     fn s(&self) -> &str {  in s()
35 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
47 fn description(&self) -> &str { in description()
54 pub fn new(s: &'a str) -> Self { in new()
65 fn next(&mut self) -> Option<Self::Item> { in next()
111 pub fn parse(s: &str) -> Result<Mime, ParseError> { in parse()
185 fn params_from_str(s: &str, iter: &mut Enumerate<Bytes>, mut start: usize) -> Result<ParamSource, P… in params_from_str()
213 // values must be restrict-name-char or "anything goes" in params_from_str()
284 let utf8 = Indexed(charset.1 + 1, charset.1 + "utf-8".len() + 1); in params_from_str()
307 fn lower_ascii_with_params(s: &str, semi: usize, params: &[(Indexed, Indexed)]) -> String { in lower_ascii_with_params()
309 owned[..semi].make_ascii_lowercase(); in lower_ascii_with_params()
324 // From [RFC6838](http://tools.ietf.org/html/rfc6838#section-4.2):
326 // > All registered media types MUST be assigned top-level type and
329 // > of one) identifies the registration tree. Both top-level type and
330 // > subtype names are case-insensitive.
334 // > type-name = restricted-name
335 // > subtype-name = restricted-name
337 // > restricted-name = restricted-name-first *126restricted-name-chars
338 // > restricted-name-first = ALPHA / DIGIT
339 // > restricted-name-chars = ALPHA / DIGIT / "!" / "#" /
340 // > "$" / "&" / "-" / "^" / "_"
341 // > restricted-name-chars =/ "." ; Characters before first dot always
343 // > restricted-name-chars =/ "+" ; Characters after last plus always
344 // > ; specify a structured syntax suffix
346 // However, [HTTP](https://tools.ietf.org/html/rfc7231#section-3.1.1.1):
348 // > media-type = type "/" subtype *( OWS ";" OWS parameter )
351 // > parameter = token "=" ( token / quoted-string )
356 // > tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*" / "+" / "-" / "." /
386 fn is_token(c: u8) -> bool { in is_token()
390 fn is_restricted_quoted_char(c: u8) -> bool { in is_restricted_quoted_char()
411 b'-' | in test_lookup_tables()