Lines Matching defs:tmp
159 let mut tmp = [0; 4];
160 let encoded_len = given_cp.encode_utf8(&mut tmp).len();
161 let (got_cp, got_len) = decode_utf8(&tmp[..encoded_len]).unwrap();
170 let mut tmp = [0; 4];
171 let encoded_len = given_cp.encode_utf8(&mut tmp).len();
173 decode_last_utf8(&tmp[..encoded_len]).unwrap();
193 let mut tmp = [0; 4];
194 let n = given_cp.encode_utf8(&mut tmp).len();
195 let (got_cp, _) = decode_utf8(&tmp[..n]).unwrap();
197 str::from_utf8(&tmp[..n]).unwrap().chars().next().unwrap();
206 let mut tmp = [0; 4];
207 let n = given_cp.encode_utf8(&mut tmp).len();
208 let (got_cp, _) = decode_last_utf8(&tmp[..n]).unwrap();
209 let expected_cp = str::from_utf8(&tmp[..n])