[pcre-dev] Variable arguments in pcrecpp::RE::DoMatch

Góra strony
Delete this message
Autor: norulez
Data:  
Dla: PCRE Mailing Lists
Temat: [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)

Thanks in advance

Best Regards
NoRulez