Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes16kdownloads
formatting.h34 linesDownload Raw Back to utils
1/* -----------------------------------------------------------------------2 * formatting.h3 *4 * src/include/utils/formatting.h5 *6 *7 *	 Portions Copyright (c) 1999-2023, PostgreSQL Global Development Group8 *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 Zak13 *14 * -----------------------------------------------------------------------15 */16 17#ifndef _FORMATTING_H_18#define _FORMATTING_H_19 20 21extern char *str_tolower(const char *buff, size_t nbytes, Oid collid);22extern char *str_toupper(const char *buff, size_t nbytes, Oid collid);23extern char *str_initcap(const char *buff, size_t nbytes, Oid collid);24 25extern char *asc_tolower(const char *buff, size_t nbytes);26extern char *asc_toupper(const char *buff, size_t nbytes);27extern char *asc_initcap(const char *buff, size_t nbytes);28 29extern Datum parse_datetime(text *date_txt, text *fmt, Oid collid, bool strict,30							Oid *typid, int32 *typmod, int *tz,31							struct Node *escontext);32 33#endif34 
codekingpro/portable-devtools · Team Ai