Logo Search packages:      
Sourcecode: djvulibre version File versions

GUTF8String GURL::hash_argument ( void   )  const

Returns string after the first '#' with decoded escape sequences.

Definition at line 498 of file GURL.cpp.

References decode_reserved(), and get_string().

{
   const GUTF8String xurl(get_string());

   bool found=false;
   GUTF8String arg;

         // Break if CGI argument is found
   for(const char * start=xurl;*start&&(*start!='?');start++)
   {
      if (found)
      {
         arg+=*start;
      }else
      {
         found=(*start=='#');
      }
   }
   return decode_reserved(arg);
}


Generated by  Doxygen 1.6.0   Back to index