[%CFEngine_function_prototype(array, input, comment, split, maxentries, maxbytes)%]
Description: Populates the two-dimensional array array with up to
maxentries fields from the first maxbytes bytes of the string input.
This function mirrors the exact behavior of readstringarrayidx(), but
reads data from a variable instead of a file. By making data readable from a variable, data driven policies can be kept inline.
[%CFEngine_function_attributes(array, input, comment, split, maxentries, maxbytes)%]
Example:
[%CFEngine_include_snippet(parsestringarrayidx.cf, #+begin_src cfengine3, .*end_src)%]
Output:
[%CFEngine_include_snippet(parsestringarrayidx.cf, #+begin_src\s+example_output\s, .end_src)%]
History: Was introduced in version 3.1.5, Nova 2.1.0 (2011)