MobilityDB
1.1
meos
postgres
utils
formatting.h
Go to the documentation of this file.
1
/* -----------------------------------------------------------------------
2
* formatting.h
3
*
4
* src/include/utils/formatting.h
5
*
6
*
7
* Portions Copyright (c) 1999-2021, PostgreSQL Global Development Group
8
*
9
* The PostgreSQL routines for a DateTime/int/float/numeric formatting,
10
* inspired by the Oracle TO_CHAR() / TO_DATE() / TO_NUMBER() routines.
11
*
12
* Karel Zak
13
*
14
* -----------------------------------------------------------------------
15
*/
16
17
#ifndef _FORMATTING_H_
18
#define _FORMATTING_H_
19
20
21
extern
char
*
str_tolower
(
const
char
*buff,
size_t
nbytes,
Oid
collid);
22
extern
char
*
str_toupper
(
const
char
*buff,
size_t
nbytes,
Oid
collid);
23
extern
char
*
str_initcap
(
const
char
*buff,
size_t
nbytes,
Oid
collid);
24
25
extern
char
*
asc_tolower
(
const
char
*buff,
size_t
nbytes);
26
extern
char
*
asc_toupper
(
const
char
*buff,
size_t
nbytes);
27
extern
char
*
asc_initcap
(
const
char
*buff,
size_t
nbytes);
28
29
extern
Datum
parse_datetime
(
text
*date_txt,
text
*fmt,
Oid
collid,
bool
strict,
30
Oid
*typid,
int32
*typmod,
int
*tz,
31
bool
*have_error);
32
33
#endif
str_initcap
char * str_initcap(const char *buff, size_t nbytes, Oid collid)
parse_datetime
Datum parse_datetime(text *date_txt, text *fmt, Oid collid, bool strict, Oid *typid, int32 *typmod, int *tz, bool *have_error)
asc_initcap
char * asc_initcap(const char *buff, size_t nbytes)
asc_toupper
char * asc_toupper(const char *buff, size_t nbytes)
Definition:
ttext_textfuncs.c:152
asc_tolower
char * asc_tolower(const char *buff, size_t nbytes)
Definition:
ttext_textfuncs.c:129
str_toupper
char * str_toupper(const char *buff, size_t nbytes, Oid collid)
str_tolower
char * str_tolower(const char *buff, size_t nbytes, Oid collid)
Datum
uintptr_t Datum
Definition:
pg_ext_defs.in.h:4
int32
signed int int32
Definition:
pg_ext_defs.in.h:8
Oid
unsigned int Oid
Definition:
postgres_ext.h:31
varlena
Definition:
pg_ext_defs.in.h:31
Generated by
1.9.4