X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/4d405feb6f8c720cd004dbba9d9a857bd1a4d95f..92d36306307652f916347656b5c31928db651c45:/chars.h?ds=sidebyside diff --git a/chars.h b/chars.h index 1205bc76..894008b6 100644 --- a/chars.h +++ b/chars.h @@ -1,6 +1,6 @@ -/* $Id: chars.h,v 1.2 2010/05/16 01:35:37 schwarze Exp $ */ +/* $Id: chars.h,v 1.6 2010/07/31 23:52:58 schwarze Exp $ */ /* - * Copyright (c) 2008, 2009 Kristaps Dzonsons + * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -17,8 +17,6 @@ #ifndef CHARS_H #define CHARS_H -#define ASCII_NBRSP 31 /* non-breaking space */ - __BEGIN_DECLS enum chars { @@ -27,8 +25,10 @@ enum chars { }; void *chars_init(enum chars); -const char *chars_a2ascii(void *, const char *, size_t, size_t *); -const char *chars_a2res(void *, const char *, size_t, size_t *); +const char *chars_spec2str(void *, const char *, size_t, size_t *); +int chars_spec2cp(void *, const char *, size_t); +const char *chars_res2str(void *, const char *, size_t, size_t *); +int chars_res2cp(void *, const char *, size_t); void chars_free(void *); __END_DECLS