Lines Matching refs:prefix_len
1960 let prefix_len = min(self.basename_len, 6) as usize; localVariable
1962 let num_suffix: Option<u32> = if name[prefix_len] as char == '~' {
1963 (name[prefix_len + 1] as char).to_digit(10)
1971 if name[..prefix_len] == self.name[..prefix_len] // 基础名前缀相同
1981 let prefix_len = min(self.basename_len, 2) as usize; localVariable
1982 let num_suffix: Option<u32> = if name[prefix_len + 4] as char == '~' {
1983 (name[prefix_len + 1] as char).to_digit(10)
1988 if name[..prefix_len] == self.name[..prefix_len] && num_suffix.is_some() && ext_matches {
1993 > = core::str::from_utf8(&name[prefix_len..prefix_len + 4])
2047 let prefix_len: usize = if with_checksum { localVariable
2048 let prefix_len: usize = min(self.basename_len as usize, 2); localVariable
2049 buf[..prefix_len].copy_from_slice(&self.name[..prefix_len]);
2050 buf[prefix_len..prefix_len + 4].copy_from_slice(&Self::u16_to_u8_array(self.checksum));
2051 prefix_len + 4
2053 let prefix_len = min(self.basename_len as usize, 6); localVariable
2054 buf[..prefix_len].copy_from_slice(&self.name[..prefix_len]);
2055 prefix_len
2058 buf[prefix_len] = '~' as u8;
2059 buf[prefix_len + 1] = char::from_digit(num, 10).unwrap() as u8;