著者: norulez 日付: To: PCRE Mailing Lists 題目: [pcre-dev] Variable arguments in pcrecpp::RE::DoMatch
Hello,
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)