Lines Matching refs:str

39 fn open_file(file_path: &str) -> File {  in open_file()
107 let mut field = line.split(":").collect::<Vec<&str>>(); in write_group_file()
108 let mut users = field.last().unwrap().split(",").collect::<Vec<&str>>(); in write_group_file()
112 .collect::<Vec<&str>>(); in write_group_file()
149 let mut field = line.split(":").collect::<Vec<&str>>(); in write_gshadow_file()
150 let mut users = field.last().unwrap().split(",").collect::<Vec<&str>>(); in write_gshadow_file()
154 .collect::<Vec<&str>>(); in write_gshadow_file()
200 let lines: Vec<&str> = content.lines().collect(); in update_passwd_file()
204 let field = line.split(':').collect::<Vec<&str>>(); in update_passwd_file()
207 .collect::<Vec<&str>>() in update_passwd_file()
222 let mut field = line.split(':').collect::<Vec<&str>>(); in update_group_file()
223 let mut users = field.last().unwrap().split(",").collect::<Vec<&str>>(); in update_group_file()
250 let lines: Vec<&str> = content.lines().collect(); in update_shadow_file()
254 .collect::<Vec<&str>>() in update_shadow_file()
269 let mut field = line.split(':').collect::<Vec<&str>>(); in update_gshadow_file()
270 let mut users = field.last().unwrap().split(",").collect::<Vec<&str>>(); in update_gshadow_file()
332 let mut fields = line.split(':').collect::<Vec<&str>>(); in update_passwd_file()
374 let mut fields = line.split(':').collect::<Vec<&str>>(); in update_group_file()
375 let mut users = fields[3].split(",").collect::<Vec<&str>>(); in update_group_file()
379 .collect::<Vec<&str>>(); in update_group_file()
418 let mut fields = line.split(':').collect::<Vec<&str>>(); in update_shadow_file()
444 let mut fields = line.split(':').collect::<Vec<&str>>(); in update_gshadow_file()
445 let mut users = fields[3].split(",").collect::<Vec<&str>>(); in update_gshadow_file()
449 .collect::<Vec<&str>>(); in update_gshadow_file()
600 let field = line.split(':').collect::<Vec<&str>>(); in update_group_file()
618 let field = line.split(':').collect::<Vec<&str>>(); in update_gshadow_file()
657 let mut field = line.split(':').collect::<Vec<&str>>(); in update_group_file()
681 let mut field = line.split(':').collect::<Vec<&str>>(); in update_gshadow_file()
708 let mut field = line.split(':').collect::<Vec<&str>>(); in update_passwd_file()