Lines Matching refs:prefix_len
1994 let prefix_len = min(self.basename_len, 6) as usize; localVariable
1996 let num_suffix: Option<u32> = if name[prefix_len] as char == '~' {
1997 (name[prefix_len + 1] as char).to_digit(10)
2005 if name[..prefix_len] == self.name[..prefix_len] // 基础名前缀相同
2016 let prefix_len = min(self.basename_len, 2) as usize; localVariable
2017 let num_suffix: Option<u32> = if name[prefix_len + 4] as char == '~' {
2018 (name[prefix_len + 1] as char).to_digit(10)
2023 if name[..prefix_len] == self.name[..prefix_len] && num_suffix.is_some() && ext_matches {
2028 > = core::str::from_utf8(&name[prefix_len..prefix_len + 4])
2083 let prefix_len: usize = if with_checksum { localVariable
2084 let prefix_len: usize = min(self.basename_len as usize, 2); localVariable
2085 buf[..prefix_len].copy_from_slice(&self.name[..prefix_len]);
2086 buf[prefix_len..prefix_len + 4].copy_from_slice(&Self::u16_to_u8_array(self.checksum));
2087 prefix_len + 4
2089 let prefix_len = min(self.basename_len as usize, 6); localVariable
2090 buf[..prefix_len].copy_from_slice(&self.name[..prefix_len]);
2091 prefix_len
2094 buf[prefix_len] = b'~';
2095 buf[prefix_len + 1] = char::from_digit(num, 10).unwrap() as u8;