2002-04-03 07:39:33 +02:00
|
|
|
/*-----------------------------------------------------------------------
|
2000-01-07 18:22:47 +01:00
|
|
|
*
|
2002-04-03 07:39:33 +02:00
|
|
|
* PostgreSQL locale utilities
|
2000-01-07 18:22:47 +01:00
|
|
|
*
|
2002-05-17 03:19:19 +02:00
|
|
|
* $Id: pg_locale.h,v 1.13 2002/05/17 01:19:19 tgl Exp $
|
2000-01-07 18:22:47 +01:00
|
|
|
*
|
2002-04-03 07:39:33 +02:00
|
|
|
* Copyright (c) 2002, PostgreSQL Global Development Group
|
2000-02-08 16:57:01 +01:00
|
|
|
*
|
2002-04-03 07:39:33 +02:00
|
|
|
*-----------------------------------------------------------------------
|
2000-02-08 16:57:01 +01:00
|
|
|
*/
|
2000-04-12 19:17:23 +02:00
|
|
|
|
|
|
|
#ifndef _PG_LOCALE_
|
|
|
|
#define _PG_LOCALE_
|
|
|
|
|
2002-04-03 07:39:33 +02:00
|
|
|
#include <locale.h>
|
2000-04-12 19:17:23 +02:00
|
|
|
|
2002-05-17 03:19:19 +02:00
|
|
|
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,
|
|
|
|
bool doit, bool interactive);
|
|
|
|
extern const char *locale_monetary_assign(const char *value,
|
|
|
|
bool doit, bool interactive);
|
|
|
|
extern const char *locale_numeric_assign(const char *value,
|
|
|
|
bool doit, bool interactive);
|
|
|
|
extern const char *locale_time_assign(const char *value,
|
|
|
|
bool doit, bool interactive);
|
|
|
|
|
|
|
|
extern bool lc_collate_is_c(void);
|
2001-10-25 07:50:21 +02:00
|
|
|
|
2001-09-29 23:16:30 +02:00
|
|
|
/*
|
2002-04-03 07:39:33 +02:00
|
|
|
* Return the POSIX lconv struct (contains number/money formatting
|
|
|
|
* information) with locale information for all categories.
|
2000-01-07 18:22:47 +01:00
|
|
|
*/
|
2000-03-18 19:57:16 +01:00
|
|
|
extern struct lconv *PGLC_localeconv(void);
|
2001-10-28 07:26:15 +01:00
|
|
|
|
2001-11-05 18:46:40 +01:00
|
|
|
#endif /* _PG_LOCALE_ */
|