encode.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef ENCODE_H_INCLUDED
  2. #define ENCODE_H_INCLUDED
  3. /*********************************************************************
  4. *
  5. * File : $Source: /cvsroot/ijbswa/current/encode.h,v $
  6. *
  7. * Purpose : Functions to encode and decode URLs, and also to
  8. * encode cookies and HTML text.
  9. *
  10. * Copyright : Written by and Copyright (C) 2001 members of the
  11. * Privoxy team. https://www.privoxy.org/
  12. *
  13. * Based on the Internet Junkbuster originally written
  14. * by and Copyright (C) 1997 Anonymous Coders and
  15. * Junkbusters Corporation. http://www.junkbusters.com
  16. *
  17. * This program is free software; you can redistribute it
  18. * and/or modify it under the terms of the GNU General
  19. * Public License as published by the Free Software
  20. * Foundation; either version 2 of the License, or (at
  21. * your option) any later version.
  22. *
  23. * This program is distributed in the hope that it will
  24. * be useful, but WITHOUT ANY WARRANTY; without even the
  25. * implied warranty of MERCHANTABILITY or FITNESS FOR A
  26. * PARTICULAR PURPOSE. See the GNU General Public
  27. * License for more details.
  28. *
  29. * The GNU General Public License should be included with
  30. * this file. If not, you can view it at
  31. * http://www.gnu.org/copyleft/gpl.html
  32. * or write to the Free Software Foundation, Inc., 59
  33. * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  34. *
  35. *********************************************************************/
  36. extern char * html_encode(const char *s);
  37. extern char * url_encode(const char *s);
  38. extern char * url_decode(const char *str);
  39. extern int xtoi(const char *s);
  40. extern char * html_encode_and_free_original(char *s);
  41. extern char * percent_encode_url(const char *s);
  42. #endif /* ndef ENCODE_H_INCLUDED */
  43. /*
  44. Local Variables:
  45. tab-width: 3
  46. end:
  47. */