Ah, yes I forgot contains.. I'll fix it.

Shall I also make the conversion to docstring for every string and
char* I use in parValidator::parValidator?

ugras

On 5/26/07, Bo Peng <[EMAIL PROTECTED]> wrote:
> Indeed, I am agree with Alfredo on this issue. Therefore I have
> attached another patch which uses string() for comparison. Use
> whichever you think is best.

+               string suffix(name,1);
+               string pars;
+               for(pariter = parlist.begin(); pariter != parlist.end(); 
pariter++) {
+                       size_type par = (*pariter).find(suffix);
+                       if(par!=string::npos) {
+                               if (!pars.empty())
+                                       pars += ", ";
+                               pars += (*pariter);                             
+                       }
+               }


At least in this file, it usually uses

  if (contains(*pariter, suffix))

Cheers,
Bo

Reply via email to