find_bracketed_arguments function

Parse Prototype Functions for Arguments

Parse Prototype Functions for Arguments

Parses strings to find abstract functions (of the format SIFUNC[ARG1][ARG2][ARG3] and extract the arguments from that function and replace it with actual functions and any additional arguments needed

find_bracketed_arguments(str, pattern, replace = "", narg, op = "[", cp = "]")

Arguments

  • str: string containing the prototype function call
  • pattern: string indicating the start of the function eg. "SI_TT_BOLUS["
  • replace: string to replace pattern with
  • narg: number of arguments to prototype function
  • op: string used to indicating open parenthesis
  • cp: string used to indicating close parenthesis

Returns

string containing the actual function call/code built from the prototype function

  • Maintainer: John Harrold
  • License: BSD_2_clause + file LICENSE
  • Last published: 2025-01-07