Lines Matching refs:suffix

95     suffix: Box<str>,  field
108 suffix: Box<str>, field
123 suffix: Box<str>, field
141 suffix: Box::<str>::default(), in new()
247 let suffix = self.suffix(); in parse_with() localVariable
248 if !suffix.is_empty() { in parse_with()
251 format!("unexpected suffix `{}` on string literal", suffix), in parse_with()
266 pub fn suffix(&self) -> &str { in suffix() method
267 &self.repr.suffix in suffix()
282 suffix: Box::<str>::default(), in new()
301 pub fn suffix(&self) -> &str { in suffix() method
302 &self.repr.suffix in suffix()
317 suffix: Box::<str>::default(), in new()
336 pub fn suffix(&self) -> &str { in suffix() method
337 &self.repr.suffix in suffix()
352 suffix: Box::<str>::default(), in new()
371 pub fn suffix(&self) -> &str { in suffix() method
372 &self.repr.suffix in suffix()
387 suffix: Box::<str>::default(), in new()
406 pub fn suffix(&self) -> &str { in suffix() method
407 &self.repr.suffix in suffix()
417 let (digits, suffix) = match value::parse_lit_int(repr) { in new()
428 suffix, in new()
469 pub fn suffix(&self) -> &str { in suffix() method
470 &self.repr.suffix in suffix()
489 if let Some((digits, suffix)) = value::parse_lit_int(&repr) { in from()
494 suffix, in from()
511 let (digits, suffix) = match value::parse_lit_float(repr) { in new()
522 suffix, in new()
541 pub fn suffix(&self) -> &str { in suffix() method
542 &self.repr.suffix in suffix()
561 if let Some((digits, suffix)) = value::parse_lit_float(&repr) { in from()
566 suffix, in from()
744 suffix: self.suffix.clone(), in clone()
756 suffix: self.suffix.clone(), in clone()
768 suffix: self.suffix.clone(), in clone()
908 if let Some((digits, suffix)) = value::parse_lit_int(&repr) { in parse_negative_lit()
916 suffix, in parse_negative_lit()
923 let (digits, suffix) = value::parse_lit_float(&repr)?; in parse_negative_lit()
931 suffix, in parse_negative_lit()
1146 let (_, suffix) = parse_lit_str(&repr); in new()
1148 repr: Box::new(LitRepr { token, suffix }), in new()
1154 let (_, suffix) = parse_lit_byte_str(&repr); in new()
1156 repr: Box::new(LitRepr { token, suffix }), in new()
1161 let (_, suffix) = parse_lit_byte(&repr); in new()
1163 repr: Box::new(LitRepr { token, suffix }), in new()
1170 let (_, suffix) = parse_lit_c_str(&repr); in new()
1172 repr: Box::new(LitRepr { token, suffix }), in new()
1177 let (_, suffix) = parse_lit_char(&repr); in new()
1179 repr: Box::new(LitRepr { token, suffix }), in new()
1184 if let Some((digits, suffix)) = parse_lit_int(&repr) { in new()
1189 suffix, in new()
1194 if let Some((digits, suffix)) = parse_lit_float(&repr) { in new()
1199 suffix, in new()
1220 pub fn suffix(&self) -> &str { in suffix() method
1222 Lit::Str(lit) => lit.suffix(), in suffix()
1223 Lit::ByteStr(lit) => lit.suffix(), in suffix()
1224 Lit::CStr(lit) => lit.suffix(), in suffix()
1225 Lit::Byte(lit) => lit.suffix(), in suffix()
1226 Lit::Char(lit) => lit.suffix(), in suffix()
1227 Lit::Int(lit) => lit.suffix(), in suffix()
1228 Lit::Float(lit) => lit.suffix(), in suffix()
1345 let suffix = s[1..].to_owned().into_boxed_str(); in parse_lit_str_cooked() localVariable
1346 (content, suffix) in parse_lit_str_cooked()
1364 let suffix = s[close + 1 + pounds..].to_owned().into_boxed_str(); in parse_lit_str_raw() localVariable
1365 (content, suffix) in parse_lit_str_raw()
1434 let suffix = s[s.len() - v.len() + 1..].to_owned().into_boxed_str(); in parse_lit_byte_str_cooked() localVariable
1435 (out, suffix) in parse_lit_byte_str_cooked()
1440 let (value, suffix) = parse_lit_str_raw(&s[1..]); in parse_lit_byte_str_raw()
1441 (String::from(value).into_bytes(), suffix) in parse_lit_byte_str_raw()
1517 let suffix = s[s.len() - v.len() + 1..].to_owned().into_boxed_str(); in parse_lit_c_str_cooked() localVariable
1518 (CString::new(out).unwrap(), suffix) in parse_lit_c_str_cooked()
1523 let (value, suffix) = parse_lit_str_raw(&s[1..]); in parse_lit_c_str_raw()
1524 (CString::new(String::from(value)).unwrap(), suffix) in parse_lit_c_str_raw()
1565 let suffix = s[s.len() - v.len() + 1..].to_owned().into_boxed_str(); in parse_lit_byte() localVariable
1566 (b, suffix) in parse_lit_byte()
1610 let suffix = s[1..].to_owned().into_boxed_str(); in parse_lit_char() localVariable
1611 (ch, suffix) in parse_lit_char()
1727 let suffix = &s[1 + i..]; in parse_lit_int() localVariable
1728 if has_exp && crate::ident::xid_ok(suffix) { in parse_lit_int()
1759 let suffix = s; in parse_lit_int() localVariable
1760 if suffix.is_empty() || crate::ident::xid_ok(suffix) { in parse_lit_int()
1765 Some((repr.into_boxed_str(), suffix.to_owned().into_boxed_str())) in parse_lit_int()
1854 let suffix = digits.split_off(read); in parse_lit_float() localVariable
1856 if suffix.is_empty() || crate::ident::xid_ok(&suffix) { in parse_lit_float()
1857 Some((digits.into_boxed_str(), suffix.into_boxed_str())) in parse_lit_float()