pg_locale.h 1.16 KB
Newer Older
1
/*-----------------------------------------------------------------------
2
 *
3
 * PostgreSQL locale utilities
4
 *
5
 * $PostgreSQL: pgsql/src/include/utils/pg_locale.h,v 1.19 2005/01/01 05:43:09 momjian Exp $
6
 *
7
 * Copyright (c) 2002-2005, PostgreSQL Global Development Group
8
 *
9
 *-----------------------------------------------------------------------
10
 */
11 12 13 14

#ifndef _PG_LOCALE_
#define _PG_LOCALE_

15
#include <locale.h>
16

17 18 19
#include "utils/guc.h"


20 21 22 23 24 25
extern char *locale_messages;
extern char *locale_monetary;
extern char *locale_numeric;
extern char *locale_time;

extern const char *locale_messages_assign(const char *value,
26
					   bool doit, GucSource source);
27
extern const char *locale_monetary_assign(const char *value,
28
					   bool doit, GucSource source);
29
extern const char *locale_numeric_assign(const char *value,
30
					  bool doit, GucSource source);
31
extern const char *locale_time_assign(const char *value,
32
				   bool doit, GucSource source);
33 34

extern bool lc_collate_is_c(void);
35

36
/*
37 38
 * Return the POSIX lconv struct (contains number/money formatting
 * information) with locale information for all categories.
39
 */
Tom Lane's avatar
Tom Lane committed
40
extern struct lconv *PGLC_localeconv(void);
41

42
#endif   /* _PG_LOCALE_ */