Skip to main content

parse_dialog_filter_spec

Function parse_dialog_filter_spec 

Source
pub fn parse_dialog_filter_spec(spec: &str) -> Vec<(String, Vec<String>)>
Expand description

Parse a pick_file_filtered spec like "Images:png,jpg|All:*" into the (label, [extensions]) list the dialog backend takes. A group with no : is a label with no extensions, and a literal * extension is dropped (no extension filter means “all files”).