Lines Matching defs:non_ascii
67 /// let non_ascii = b_str!("?");
68 /// let s = CString::try_from_fmt(fmt!("{non_ascii}"))?;
99 /// let non_ascii = b_str!("?");
100 /// let s = CString::try_from_fmt(fmt!("{non_ascii:?}"))?;
668 let non_ascii = CStr::from_bytes_with_nul(b"d\xe9j\xe0 vu\0")?;
669 assert_eq!(format!("{non_ascii}"), "d\\xe9j\\xe0 vu");
693 let non_ascii = CStr::from_bytes_with_nul(b"d\xe9j\xe0 vu\0")?;
694 assert_eq!(format!("{non_ascii:?}"), "\"d\\xe9j\\xe0 vu\"");
708 let non_ascii = BStr::from_bytes(b"d\xe9j\xe0 vu");
709 assert_eq!(format!("{non_ascii}"), "d\\xe9j\\xe0 vu");
723 let non_ascii = BStr::from_bytes(b"d\xe9j\xe0 vu");
724 assert_eq!(format!("{non_ascii:?}"), "\"d\\xe9j\\xe0 vu\"");