diff options
author | Norbert Preining <norbert@preining.info> | 2019-12-03 03:01:24 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-12-03 03:01:24 +0000 |
commit | b8d4bb76703bcb15578e2b23c5d256532180b894 (patch) | |
tree | bedd1df7a00521a2bd986b3c0289d6556a59e39b /support/texlab/crates/bibutils_sys/src/url.h | |
parent | 02e4625a78a5029e8b5dc2a4ec70193b232f497e (diff) |
CTAN sync 201912030301
Diffstat (limited to 'support/texlab/crates/bibutils_sys/src/url.h')
-rw-r--r-- | support/texlab/crates/bibutils_sys/src/url.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/support/texlab/crates/bibutils_sys/src/url.h b/support/texlab/crates/bibutils_sys/src/url.h new file mode 100644 index 0000000000..5348ad3cb3 --- /dev/null +++ b/support/texlab/crates/bibutils_sys/src/url.h @@ -0,0 +1,30 @@ +/* + * url.h + * + * Copyright (c) Chris Putnam 2004-2019 + * + * Source code released under the GPL version 2 + * + */ +#ifndef URL_H +#define URL_H + +#include "slist.h" +#include "fields.h" + +int is_doi( char *s ); +int is_uri_remote_scheme( char *p ); +int is_embedded_link( char *s ); + +void doi_to_url( fields *info, int n, char *urltag, str *doi_url ); +void pmid_to_url( fields *info, int n, char *urltag, str *pmid_url ); +void pmc_to_url( fields *info, int n, char *urltag, str *pmid_url ); +void arxiv_to_url( fields *info, int n, char *urltag, str *arxiv_url ); +void jstor_to_url( fields *info, int n, char *urltag, str *jstor_url ); +void mrnumber_to_url( fields *info, int n, char *urltag, str *jstor_url ); + +int urls_merge_and_add( fields *in, int lvl_in, fields *out, char *tag_out, int lvl_out, slist *types ); +int urls_split_and_add( char *value_in, fields *out, int lvl_out ); + + +#endif |