Eneboo - Documentación para desarrolladores
|
00001 /*----------------------------------------------------------------------- 00002 * 00003 * PostgreSQL locale utilities 00004 * 00005 * $PostgreSQL: pgsql/src/include/utils/pg_locale.h,v 1.20.2.1 2006/01/05 00:54:51 tgl Exp $ 00006 * 00007 * Copyright (c) 2002-2005, PostgreSQL Global Development Group 00008 * 00009 *----------------------------------------------------------------------- 00010 */ 00011 00012 #ifndef _PG_LOCALE_ 00013 #define _PG_LOCALE_ 00014 00015 #include <locale.h> 00016 00017 #include "utils/guc.h" 00018 00019 00020 extern char *locale_messages; 00021 extern char *locale_monetary; 00022 extern char *locale_numeric; 00023 extern char *locale_time; 00024 00025 extern const char *locale_messages_assign(const char *value, 00026 bool doit, GucSource source); 00027 extern const char *locale_monetary_assign(const char *value, 00028 bool doit, GucSource source); 00029 extern const char *locale_numeric_assign(const char *value, 00030 bool doit, GucSource source); 00031 extern const char *locale_time_assign(const char *value, 00032 bool doit, GucSource source); 00033 00034 extern char *pg_perm_setlocale(int category, const char *locale); 00035 00036 extern bool lc_collate_is_c(void); 00037 extern bool lc_ctype_is_c(void); 00038 00039 /* 00040 * Return the POSIX lconv struct (contains number/money formatting 00041 * information) with locale information for all categories. 00042 */ 00043 extern struct lconv *PGLC_localeconv(void); 00044 00045 #endif /* _PG_LOCALE_ */