PostgreSQL Source Code
git master
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-2025, 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
extern
char
*
str_casefold
(
const
char
*buff,
size_t
nbytes,
Oid
collid
);
25
26
extern
char
*
asc_tolower
(
const
char
*buff,
size_t
nbytes);
27
extern
char
*
asc_toupper
(
const
char
*buff,
size_t
nbytes);
28
extern
char
*
asc_initcap
(
const
char
*buff,
size_t
nbytes);
29
30
extern
Datum
parse_datetime
(
text
*date_txt,
text
*fmt,
Oid
collid
,
bool
strict,
31
Oid
*typid,
int32
*typmod,
int
*tz,
32
struct
Node
*escontext);
33
extern
bool
datetime_format_has_tz
(
const
char
*fmt_str);
34
35
#endif
int32
int32_t int32
Definition:
c.h:498
collid
Oid collid
Definition:
collationcmds.c:700
parse_datetime
Datum parse_datetime(text *date_txt, text *fmt, Oid collid, bool strict, Oid *typid, int32 *typmod, int *tz, struct Node *escontext)
Definition:
formatting.c:4202
str_initcap
char * str_initcap(const char *buff, size_t nbytes, Oid collid)
Definition:
formatting.c:1765
datetime_format_has_tz
bool datetime_format_has_tz(const char *fmt_str)
Definition:
formatting.c:4365
asc_initcap
char * asc_initcap(const char *buff, size_t nbytes)
Definition:
formatting.c:1944
asc_toupper
char * asc_toupper(const char *buff, size_t nbytes)
Definition:
formatting.c:1921
str_casefold
char * str_casefold(const char *buff, size_t nbytes, Oid collid)
Definition:
formatting.c:1829
asc_tolower
char * asc_tolower(const char *buff, size_t nbytes)
Definition:
formatting.c:1898
str_toupper
char * str_toupper(const char *buff, size_t nbytes, Oid collid)
Definition:
formatting.c:1701
str_tolower
char * str_tolower(const char *buff, size_t nbytes, Oid collid)
Definition:
formatting.c:1637
Datum
uintptr_t Datum
Definition:
postgres.h:69
Oid
unsigned int Oid
Definition:
postgres_ext.h:32
Node
Definition:
nodes.h:131
varlena
Definition:
c.h:658
src
include
utils
formatting.h
Generated on Sat Mar 22 2025 18:13:25 for PostgreSQL Source Code by
1.9.4