Sha256: 213370e6a5b33c51e9c2b426d2bd41ae4b6897b1dcccd407a3e13fb3fe233cc3

Contents?: true

Size: 1.41 KB

Versions: 40

Compression:

Stored size: 1.41 KB

Contents

/*
 * Copyright (c) 2011, Vicent Marti
 *
 * Permission to use, copy, modify, and distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

#ifndef UPSKIRT_AUTOLINK_H
#define UPSKIRT_AUTOLINK_H

#include "buffer.h"

#ifdef __cplusplus
extern "C" {
#endif

enum {
	SD_AUTOLINK_SHORT_DOMAINS = (1 << 0),
};

int
sd_autolink_issafe(const uint8_t *link, size_t link_len);

size_t
sd_autolink__www(size_t *rewind_p, struct buf *link,
	uint8_t *data, size_t offset, size_t size, unsigned int flags);

size_t
sd_autolink__email(size_t *rewind_p, struct buf *link,
	uint8_t *data, size_t offset, size_t size, unsigned int flags);

size_t
sd_autolink__url(size_t *rewind_p, struct buf *link,
	uint8_t *data, size_t offset, size_t size, unsigned int flags);

#ifdef __cplusplus
}
#endif

#endif

/* vim: set filetype=c: */

Version data entries

40 entries across 37 versions & 10 rubygems

Version Path
tdiary-5.0.5 vendor/bundle/gems/github-markdown-0.6.9/ext/markdown/autolink.h
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/github-markdown-0.6.9/ext/markdown/autolink.h
tdiary-5.0.4 vendor/bundle/gems/github-markdown-0.6.9/ext/markdown/autolink.h
zendesk-rinku-1.7.3 ext/rinku/autolink.h
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/github-markdown-0.6.9/ext/markdown/autolink.h
github-markdown-0.6.9 ext/markdown/autolink.h
github-markdown-0.6.8 ext/markdown/autolink.h
github-markdown-0.6.7 ext/markdown/autolink.h
github-markdown-0.6.6 ext/markdown/autolink.h
github-markdown-jekyll-0.7.0 ext/markdown/autolink.h
zendesk-rinku-1.7.2.1 ext/rinku/autolink.h
zendesk-rinku-1.7.0 ext/rinku/autolink.h
github-markdown-0.6.5 ext/markdown/autolink.h
github-markdown-0.6.4 ext/markdown/autolink.h
github-markdown-0.6.3 ext/markdown/autolink.h
github-markdown-0.6.2 ext/markdown/autolink.h
github-markdown-0.6.1 ext/markdown/autolink.h
github-markdown-0.6.0 ext/markdown/autolink.h
github-markdown-0.5.5 ext/markdown/autolink.h
github-markdown-0.5.4 ext/markdown/autolink.h