postgresql/src/include/utils/pg_locale.h

52 lines
1.1 KiB
C
Raw Normal View History

/* -----------------------------------------------------------------------
* pg_locale.h
*
* The PostgreSQL locale utils.
*
*
2001-03-22 05:01:46 +01:00
* $Id: pg_locale.h,v 1.7 2001/03/22 04:01:14 momjian Exp $
*
* Portions Copyright (c) 1999-2000, PostgreSQL Global Development Group
*
* Karel Zak - Zakkr
*
* -----------------------------------------------------------------------
*/
#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 void PGLC_current(PG_LocaleCategories * lc);
/*------
* Return the POSIX lconv struct (contains number/money formatting information)
2001-03-22 05:01:46 +01:00
* with locale information for all categories. Note that returned lconv
* does not depend on currently active category settings, but on external
* environment variables for locale.
*------
*/
2000-03-18 19:57:16 +01:00
extern struct lconv *PGLC_localeconv(void);
#endif /* USE_LOCALE */
#endif /* _PG_LOCALE_ */