X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fstr.h;h=360c7b926210a623fab8b6ed56ab6d711253b31a;hb=43e51e6fd8d1e10b5d5b6d62de8da6ec833f806c;hp=01a3fbd88c65e434634c52626c873d78bebad519;hpb=eb2bdda70aee57124ac4bcb3110f9280472d1dbd;p=idzebra-moved-to-github.git diff --git a/include/str.h b/include/str.h index 01a3fbd..360c7b9 100644 --- a/include/str.h +++ b/include/str.h @@ -1,10 +1,20 @@ /* - * Copyright (C) 1994, Index Data I/S + * Copyright (C) 1994-1999, Index Data * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * * $Log: str.h,v $ - * Revision 1.1 1994-10-20 13:46:36 quinn + * Revision 1.4 1999-02-02 14:50:45 adam + * Updated WIN32 code specific sections. Changed header. + * + * Revision 1.3 1997/09/05 15:30:06 adam + * Changed prototype for chr_map_input - added const. + * Added support for C++, headers uses extern "C" for public definitions. + * + * Revision 1.2 1994/10/20 17:36:06 quinn + * Minimal + * + * Revision 1.1 1994/10/20 13:46:36 quinn * String-management system * */ @@ -12,4 +22,30 @@ #ifndef STR_H #define STR_H +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct str_index +{ + int size; + char *data; +} str_index; + +typedef struct strings_data +{ + str_index *index; + int num_index; + char *bulk; +} strings_data, *STRINGS; + +STRINGS str_open(char *lang, char *name); +void str_close(STRINGS st); +char *str(STRINGS st, int num); +char *strf(STRINGS st, int num, ...); + +#ifdef __cplusplus +} +#endif + #endif