pub fn parse_string_array(input: &str) -> IResult<&str, Vec<String>>Expand description
Parses a comma-separated list of string values.
This helper function parses a list of quoted text values separated by commas. It handles optional whitespace around commas and uses the standard text parsing logic for each individual value.
§Arguments
input- The input string to parse
§Returns
IResult<&str, Vec<String>>- A nom result with remaining input and parsed string vector
§Examples
use aimx::values::format::parse_string_array;
let result = parse_string_array(r#""first", "second", "third""#);
assert!(result.is_ok());
let (remaining, strings) = result.unwrap();
assert_eq!(strings.len(), 3);
assert_eq!(strings[0], "first");
assert_eq!(strings[1], "second");
assert_eq!(strings[2], "third");
assert_eq!(remaining, "");