Logo Search packages:      
Sourcecode: djvulibre version File versions

int GURL::djvu_cgi_arguments ( void   )  const

Returns the total number of DjVu-related CGI arguments (arguments following DJVUOPTS# in the URL).

Definition at line 646 of file GURL.cpp.

References ArrayBase::size().

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

   int args=0;
   for(int i=0;i<cgi_name_arr.size();i++)
   {
      if (cgi_name_arr[i].upcase()==djvuopts)
      {
         args=cgi_name_arr.size()-(i+1);
         break;
      }
   } 
   return args;
}


Generated by  Doxygen 1.6.0   Back to index