mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-28 01:07:00 +08:00
Gen_fmgrtab.pl creates a new file fmgrprotos.h, which contains prototypes for all functions registered in pg_proc.h. This avoids having to manually maintain these prototypes across a random variety of header files. It also automatically enforces a correct function signature, and since there are warnings about missing prototypes, it will detect functions that are defined but not registered in pg_proc.h (or otherwise used). Reviewed-by: Pavel Stehule <pavel.stehule@gmail.com>
32 lines
920 B
C
32 lines
920 B
C
/* -----------------------------------------------------------------------
|
|
* formatting.h
|
|
*
|
|
* src/include/utils/formatting.h
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1999-2017, PostgreSQL Global Development Group
|
|
*
|
|
* The PostgreSQL routines for a DateTime/int/float/numeric formatting,
|
|
* inspire with Oracle TO_CHAR() / TO_DATE() / TO_NUMBER() routines.
|
|
*
|
|
* Karel Zak
|
|
*
|
|
* -----------------------------------------------------------------------
|
|
*/
|
|
|
|
#ifndef _FORMATTING_H_
|
|
#define _FORMATTING_H_
|
|
|
|
#include "fmgr.h"
|
|
|
|
|
|
extern char *str_tolower(const char *buff, size_t nbytes, Oid collid);
|
|
extern char *str_toupper(const char *buff, size_t nbytes, Oid collid);
|
|
extern char *str_initcap(const char *buff, size_t nbytes, Oid collid);
|
|
|
|
extern char *asc_tolower(const char *buff, size_t nbytes);
|
|
extern char *asc_toupper(const char *buff, size_t nbytes);
|
|
extern char *asc_initcap(const char *buff, size_t nbytes);
|
|
|
|
#endif
|