1 /*********************************************************************** 2 * * 3 * This software is part of the ast package * 4 * Copyright (c) 1985-2007 AT&T Knowledge Ventures * 5 * and is licensed under the * 6 * Common Public License, Version 1.0 * 7 * by AT&T Knowledge Ventures * 8 * * 9 * A copy of the License is available at * 10 * http://www.opensource.org/licenses/cpl1.0.txt * 11 * (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) * 12 * * 13 * Information and Software Systems Research * 14 * AT&T Research * 15 * Florham Park NJ * 16 * * 17 * Glenn Fowler <gsf@research.att.com> * 18 * David Korn <dgk@research.att.com> * 19 * Phong Vo <kpv@research.att.com> * 20 * * 21 ***********************************************************************/ 22 #pragma prototyped 23 24 /* 25 * locale state private definitions 26 */ 27 28 #ifndef _LCLIB_H 29 #define _LCLIB_H 1 30 31 #define categories _ast_categories 32 #define locales _ast_locales 33 #define translate _ast_translate 34 35 struct Lc_info_s; 36 37 #define _LC_PRIVATE_ \ 38 struct Lc_info_s info[AST_LC_COUNT]; \ 39 struct Lc_s* next; 40 41 #define _LC_TERRITORY_PRIVATE_ \ 42 unsigned char indices[LC_territory_language_max]; 43 44 #include <ast.h> 45 #include <error.h> 46 #include <lc.h> 47 48 typedef struct Lc_numeric_s 49 { 50 int decimal; 51 int thousand; 52 } Lc_numeric_t; 53 54 #define LCINFO(c) (&locales[c]->info[c]) 55 56 extern Lc_category_t categories[]; 57 extern Lc_t* locales[]; 58 59 extern char* translate(const char*, const char*, const char*, const char*); 60 61 #endif 62