Fix xslt_process() to ensure that it inserts a NULL terminator after the
[PostgreSQL.git] / src / include / utils / formatting.h
blob19a675c3d8ee4ac000b3d02211c9f4c26fb74906
2 /* -----------------------------------------------------------------------
3 * formatting.h
5 * $PostgreSQL$
8 * Portions Copyright (c) 1999-2009, PostgreSQL Global Development Group
10 * The PostgreSQL routines for a DateTime/int/float/numeric formatting,
11 * inspire with Oracle TO_CHAR() / TO_DATE() / TO_NUMBER() routines.
13 * Karel Zak
15 * -----------------------------------------------------------------------
18 #ifndef _FORMATTING_H_
19 #define _FORMATTING_H_
21 #include "fmgr.h"
24 extern char *str_tolower(const char *buff, size_t nbytes);
25 extern char *str_toupper(const char *buff, size_t nbytes);
26 extern char *str_initcap(const char *buff, size_t nbytes);
28 extern Datum timestamp_to_char(PG_FUNCTION_ARGS);
29 extern Datum timestamptz_to_char(PG_FUNCTION_ARGS);
30 extern Datum interval_to_char(PG_FUNCTION_ARGS);
31 extern Datum to_timestamp(PG_FUNCTION_ARGS);
32 extern Datum to_date(PG_FUNCTION_ARGS);
33 extern Datum numeric_to_number(PG_FUNCTION_ARGS);
34 extern Datum numeric_to_char(PG_FUNCTION_ARGS);
35 extern Datum int4_to_char(PG_FUNCTION_ARGS);
36 extern Datum int8_to_char(PG_FUNCTION_ARGS);
37 extern Datum float4_to_char(PG_FUNCTION_ARGS);
38 extern Datum float8_to_char(PG_FUNCTION_ARGS);
40 #endif