]> git.cameronkatri.com Git - mandoc.git/blob - chars.h
Fix a regression caused by mdoc_term.c 1.214 / mdoc_html.c 1.148:
[mandoc.git] / chars.h
1 /* $Id: chars.h,v 1.7 2011/01/30 16:05:37 schwarze Exp $ */
2 /*
3 * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
4 * Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
5 *
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 */
18 #ifndef CHARS_H
19 #define CHARS_H
20
21 __BEGIN_DECLS
22
23 enum chars {
24 CHARS_ASCII,
25 CHARS_HTML
26 };
27
28 void *chars_init(enum chars);
29 const char *chars_num2char(const char *, size_t);
30 const char *chars_spec2str(void *, const char *, size_t, size_t *);
31 int chars_spec2cp(void *, const char *, size_t);
32 const char *chars_res2str(void *, const char *, size_t, size_t *);
33 int chars_res2cp(void *, const char *, size_t);
34 void chars_free(void *);
35
36 __END_DECLS
37
38 #endif /*!CHARS_H*/