blob: a106fa77cb1af49886bc0df65f95fc5ad533bb8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
/* -----------------------------------------------------------------------
* pg_locale.h
*
* The PostgreSQL locale utils.
*
*
* $Id: pg_locale.h,v 1.5 2000/11/25 22:43:07 tgl Exp $
*
* Portions Copyright (c) 1999-2000, PostgreSQL, Inc
*
* 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)
* 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.
*------
*/
extern struct lconv *PGLC_localeconv(void);
#endif /* USE_LOCALE */
#endif /* _PG_LOCALE_ */
|