THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Git Source Code Mirror - This is a publish-only repository and all pull requests are ignored. Please follow Documentation/SubmittingPatches procedure for any of your improvements.
git
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
697B

  1. #ifndef URL_H
  2. #define URL_H
  3. struct strbuf;
  4. int is_url(const char *url);
  5. int is_urlschemechar(int first_flag, int ch);
  6. char *url_decode(const char *url);
  7. char *url_decode_mem(const char *url, int len);
  8. /*
  9. * Similar to the url_decode_{,mem} methods above, but doesn't assume there
  10. * is a scheme followed by a : at the start of the string. Instead, %-sequences
  11. * before any : are also parsed.
  12. */
  13. char *url_percent_decode(const char *encoded);
  14. char *url_decode_parameter_name(const char **query);
  15. char *url_decode_parameter_value(const char **query);
  16. void end_url_with_slash(struct strbuf *buf, const char *url);
  17. void str_end_url_with_slash(const char *url, char **dest);
  18. #endif /* URL_H */