diff options
Diffstat (limited to 'chars.c')
-rw-r--r-- | chars.c | 31 |
1 files changed, 0 insertions, 31 deletions
@@ -113,21 +113,6 @@ mchars_spec2cp(struct mchars *arg, const char *p, size_t sz) return(ln->unicode); } - -/* - * Reserved word to Unicode codepoint. - */ -int -mchars_res2cp(struct mchars *arg, const char *p, size_t sz) -{ - const struct ln *ln; - - ln = find(arg, p, sz); - if (NULL == ln) - return(-1); - return(ln->unicode); -} - /* * Numbered character string to ASCII codepoint. * This can only be a printable character (i.e., alnum, punct, space) so @@ -176,22 +161,6 @@ mchars_spec2str(struct mchars *arg, const char *p, size_t sz, size_t *rsz) return(ln->ascii); } -/* - * Reserved word to string array. - */ -const char * -mchars_res2str(struct mchars *arg, const char *p, size_t sz, size_t *rsz) -{ - const struct ln *ln; - - ln = find(arg, p, sz); - if (NULL == ln) - return(NULL); - - *rsz = strlen(ln->ascii); - return(ln->ascii); -} - static const struct ln * find(struct mchars *tab, const char *p, size_t sz) { |