X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fcharmap.h;h=ecc129b69deae6fb11fc4a8d100bf8ef61afa081;hb=ca8ea9b7dfba1b20033345d996ade40d1e94159b;hp=4ea931a64ec05c40f07b90c846fb3e27916bfd2e;hpb=4478d785b7769691261005c98063b98a5a5971b3;p=idzebra-moved-to-github.git diff --git a/include/charmap.h b/include/charmap.h index 4ea931a..ecc129b 100644 --- a/include/charmap.h +++ b/include/charmap.h @@ -1,8 +1,5 @@ -/* $Id: charmap.h,v 1.16 2006-08-14 10:40:12 adam Exp $ - Copyright (C) 1995-2006 - Index Data ApS - -This file is part of the Zebra server. +/* This file is part of the Zebra server. + Copyright (C) Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -32,6 +29,9 @@ YAZ_EXPORT extern const char *CHR_SPACE; YAZ_EXPORT extern const char *CHR_CUT; YAZ_EXPORT extern const char *CHR_BASE; +/* defines first char we map to (0, 1, .. are specials) */ +#define CHR_BASE_CHAR 5 + struct chr_t_entry; typedef struct chr_t_entry chr_t_entry; @@ -46,7 +46,7 @@ YAZ_EXPORT const char **chr_map_input_x(chrmaptab t, const char **from, int *len, int first); YAZ_EXPORT const char **chr_map_q_input(chrmaptab maptab, const char **from, int len, int first); - + YAZ_EXPORT const char *chr_map_output(chrmaptab t, const char **from, int len); YAZ_END_CDECL @@ -55,6 +55,7 @@ YAZ_END_CDECL /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab