Author: norulez Date: To: PCRE Mailing Lists Subject: [pcre-dev] Variable arguments in pcrecpp::RE::DoMatch
I found a code snippet like this:
int z = 0;
pcrecpp::Arg arg0 = &matches[z];
args[z++] = &arg0;
This is repeated 10 times if the argument count is 10. For 20 arguments this snippet is repeated 20 times.
Is there no other way to do this?
The reason for that question is that I want to use a dynamic count of arguments (e.g.: 5, 50 ... 500)
Thanks in advance
This message was posted to the following mailing lists: