Logo Search packages:      
Sourcecode: djvulibre version File versions

GUTF8String GURL::djvu_cgi_name ( int  num  )  const

Returns that part of DjVu-related CGI argument number num#, which is before the equal sign.

Definition at line 673 of file GURL.cpp.

References ArrayBase::size().

{
   if(!validurl) const_cast<GURL *>(this)->init();
   GCriticalSectionLock lock((GCriticalSection *) &class_lock);

   GUTF8String arg;
   for(int i=0;i<cgi_name_arr.size();i++)
      if (cgi_name_arr[i].upcase()==djvuopts)
      {
         for(i++;i<cgi_name_arr.size();i++)
            if (! num--)
            {
               arg=cgi_name_arr[i];
               break;
            }
         break;
      }
   return arg;
}


Generated by  Doxygen 1.6.0   Back to index