fn search_like(&mut self, names: &[&str]) -> Option<Self::ArchiveRef> {
		let max = self.len();
		let mut index_opt: Option<usize> = None;
		for i in 0..max {
			let zip_file = self.by_index(i).unwrap();
			let file_name = zip_file.sanitized_name().file_name().unwrap().to_str().unwrap().to_lowercase();
			for name in names.iter() {
				if name == &file_name {
					index_opt = Some(i)
				}
			}
		}

		if let Some(ind_val) = index_opt {
			Some(ind_val)
		}

		else {
			None
		}
	}
// Search in zip_arc for a file whose name is like one of names, case insensitve
// NOTE: names must be in lowercase
Search in zip_arc for a file whose name is like one of names, case insensitve
NOTE: names must be in lowercase
Search in zip_arc for a file whose name is like one of names case insensitve NOTE : names must be in lowercase
fn search_like(&mut self, names: &[&str]) -> Option<Self::ArchiveRef> {
		let max = self.len();
		let mut index_opt: Option<usize> = None;
		for i in 0..max {
			let zip_file = self.by_index(i).unwrap();
			let file_name = zip_file.sanitized_name().file_name().unwrap().to_str().unwrap().to_lowercase();
			for name in names.iter() {
				if name == &file_name {
					index_opt = Some(i)
				}
			}
		}
		if let Some(ind_val) = index_opt {
			Some(ind_val)
		}
		else {
			None
		}
	}
fn search_like ( & mut self , names : & [ & str ] ) -> Option < Self :: ArchiveRef > { let max = self . len ( ) ; let mut index_opt : Option < usize > = None ; for i in 0 .. max { let zip_file = self . by_index ( i ) . unwrap ( ) ; let file_name = zip_file . sanitized_name ( ) . file_name ( ) . unwrap ( ) . to_str ( ) . unwrap ( ) . to_lowercase ( ) ; for name in names . iter ( ) { if name == & file_name { index_opt = Some ( i ) } } } if let Some ( ind_val ) = index_opt { Some ( ind_val ) } else { None } }
Search in zip_arc for a file whose name is like one of names, case insensitve
NOTE: names must be in lowercase
Search in zip_arc for a file whose name is like one of names case insensitve NOTE : names must be in lowercase
&mut self
names
&[&str]