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

Αρχική Σελίδα
Delete this message
Συντάκτης: norulez
Ημερομηνία:  
Προς: 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)

Thanks in advance

Best Regards
NoRulez