git/urlmatch.c

#include "git-compat-util.h"
#include "gettext.h"
#include "hex-ll.h"
#include "strbuf.h"
#include "urlmatch.h"

#define URL_ALPHA
#define URL_DIGIT
#define URL_ALPHADIGIT
#define URL_SCHEME_CHARS
#define URL_HOST_CHARS
#define URL_UNSAFE_CHARS
#define URL_GEN_RESERVED
#define URL_SUB_RESERVED
#define URL_RESERVED

static int append_normalized_escapes(struct strbuf *buf,
				     const char *from,
				     size_t from_len,
				     const char *esc_extra,
				     const char *esc_ok)
{}

static const char *end_of_token(const char *s, int c, size_t n)
{}

static int match_host(const struct url_info *url_info,
		      const struct url_info *pattern_info)
{}

static char *url_normalize_1(const char *url, struct url_info *out_info, char allow_globs)
{}

char *url_normalize(const char *url, struct url_info *out_info)
{}

static size_t url_match_prefix(const char *url,
			       const char *url_prefix,
			       size_t url_prefix_len)
{}

static int match_urls(const struct url_info *url,
		      const struct url_info *url_prefix,
		      struct urlmatch_item *match)
{}

static int cmp_matches(const struct urlmatch_item *a,
		       const struct urlmatch_item *b)
{}

int urlmatch_config_entry(const char *var, const char *value,
			  const struct config_context *ctx, void *cb)
{}

void urlmatch_config_release(struct urlmatch_config *config)
{}