2000-01-07 18:22:47 +01:00
|
|
|
|
2000-02-08 16:57:01 +01:00
|
|
|
/* -----------------------------------------------------------------------
|
2000-01-07 18:22:47 +01:00
|
|
|
* pg_locale.h
|
|
|
|
*
|
2000-03-18 19:57:16 +01:00
|
|
|
* $Header: /cvsroot/pgsql/src/include/utils/pg_locale.h,v 1.3 2000/03/18 18:57:15 tgl Exp $
|
2000-01-07 18:22:47 +01:00
|
|
|
*
|
|
|
|
*
|
2000-02-08 16:57:01 +01:00
|
|
|
* Portions Copyright (c) 1999-2000, PostgreSQL, Inc
|
|
|
|
*
|
|
|
|
* The PostgreSQL locale utils.
|
|
|
|
*
|
|
|
|
* Karel Zak - Zakkr
|
|
|
|
*
|
|
|
|
* -----------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2000-01-07 18:22:47 +01:00
|
|
|
#ifndef _PG_LOCALE_
|
|
|
|
#define _PG_LOCALE_
|
|
|
|
|
|
|
|
#ifdef USE_LOCALE
|
|
|
|
|
|
|
|
/*------
|
|
|
|
* POSIX locale categories and environment variable LANG
|
|
|
|
*------
|
|
|
|
*/
|
|
|
|
typedef struct PG_LocaleCategories {
|
|
|
|
char *lang,
|
|
|
|
*lc_ctype,
|
|
|
|
*lc_numeric,
|
|
|
|
*lc_time,
|
|
|
|
*lc_collate,
|
|
|
|
*lc_monetary,
|
|
|
|
*lc_messages;
|
|
|
|
} PG_LocaleCategories;
|
|
|
|
|
|
|
|
|
|
|
|
extern PG_LocaleCategories *PGLC_current( PG_LocaleCategories *lc );
|
|
|
|
extern PG_LocaleCategories *PGLC_setlocale( PG_LocaleCategories *lc );
|
|
|
|
|
|
|
|
/*------
|
|
|
|
* Return the POSIX lconv struct (contains number/money formatting information)
|
|
|
|
* with locale information for *all* categories. Returned lconv is *independent*
|
|
|
|
* on current locale catogories setting - in contrast to standard localeconv().
|
|
|
|
*------
|
|
|
|
*/
|
2000-03-18 19:57:16 +01:00
|
|
|
extern struct lconv *PGLC_localeconv(void);
|
2000-01-07 18:22:47 +01:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* USE_LOCALE */
|
|
|
|
|
|
|
|
#endif /* _PG_LOCALE_ */
|