Skip to main content

split_call_args

Function split_call_args 

Source
fn split_call_args(s: &str) -> Vec<String>
Expand description

Split call arguments on top-level commas, respecting nested parentheses, brackets, and quoted strings.

This ensures that array and tuple arguments containing internal commas are not incorrectly split. For example:

  • [1,2] stays as one argument
  • (7,hello),9 splits into (7,hello) and 9