Logo Search packages:      
Sourcecode: djvulibre version File versions

DArray< GUTF8String > GURL::djvu_cgi_values ( void   )  const

Returns array of values of DjVu-related CGI arguments (arguments following DJVUOPTS# option.

Definition at line 767 of file GURL.cpp.

References ArrayBase::resize(), and ArrayBase::size().

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

   int i;
   DArray<GUTF8String> arr;
   for(i=0;i<cgi_name_arr.size()&&(cgi_name_arr[i].upcase()!=djvuopts);i++)
            EMPTY_LOOP;

   int size=cgi_name_arr.size()-(i+1);
   if (size>0)
   {
      arr.resize(size-1);
      for(i=0;i<arr.size();i++)
         arr[i]=cgi_value_arr[cgi_value_arr.size()-arr.size()+i];
   }

   return arr;
}


Generated by  Doxygen 1.6.0   Back to index