|
enum | DCH_poz {
DCH_A_D
, DCH_A_M
, DCH_AD
, DCH_AM
,
DCH_B_C
, DCH_BC
, DCH_CC
, DCH_DAY
,
DCH_DDD
, DCH_DD
, DCH_DY
, DCH_Day
,
DCH_Dy
, DCH_D
, DCH_FF1
, DCH_FF2
,
DCH_FF3
, DCH_FF4
, DCH_FF5
, DCH_FF6
,
DCH_FX
, DCH_HH24
, DCH_HH12
, DCH_HH
,
DCH_IDDD
, DCH_ID
, DCH_IW
, DCH_IYYY
,
DCH_IYY
, DCH_IY
, DCH_I
, DCH_J
,
DCH_MI
, DCH_MM
, DCH_MONTH
, DCH_MON
,
DCH_MS
, DCH_Month
, DCH_Mon
, DCH_OF
,
DCH_P_M
, DCH_PM
, DCH_Q
, DCH_RM
,
DCH_SSSSS
, DCH_SSSS
, DCH_SS
, DCH_TZH
,
DCH_TZM
, DCH_TZ
, DCH_US
, DCH_WW
,
DCH_W
, DCH_Y_YYY
, DCH_YYYY
, DCH_YYY
,
DCH_YY
, DCH_Y
, DCH_a_d
, DCH_a_m
,
DCH_ad
, DCH_am
, DCH_b_c
, DCH_bc
,
DCH_cc
, DCH_day
, DCH_ddd
, DCH_dd
,
DCH_dy
, DCH_d
, DCH_ff1
, DCH_ff2
,
DCH_ff3
, DCH_ff4
, DCH_ff5
, DCH_ff6
,
DCH_fx
, DCH_hh24
, DCH_hh12
, DCH_hh
,
DCH_iddd
, DCH_id
, DCH_iw
, DCH_iyyy
,
DCH_iyy
, DCH_iy
, DCH_i
, DCH_j
,
DCH_mi
, DCH_mm
, DCH_month
, DCH_mon
,
DCH_ms
, DCH_p_m
, DCH_pm
, DCH_q
,
DCH_rm
, DCH_sssss
, DCH_ssss
, DCH_ss
,
DCH_tz
, DCH_us
, DCH_ww
, DCH_w
,
DCH_y_yyy
, DCH_yyyy
, DCH_yyy
, DCH_yy
,
DCH_y
, _DCH_last_
} |
|
enum | FromCharDateMode { FROM_CHAR_DATE_NONE = 0
, FROM_CHAR_DATE_GREGORIAN
, FROM_CHAR_DATE_ISOWEEK
} |
|
|
static int | adjust_partial_year_to_2020 (int year) |
|
char * | asc_initcap (const char *buff, size_t nbytes) |
|
char * | asc_tolower (const char *buff, size_t nbytes) |
|
static char * | asc_tolower_z (const char *buff) |
|
char * | asc_toupper (const char *buff, size_t nbytes) |
|
static char * | asc_toupper_z (const char *buff) |
|
text * | cstring2text (const char *cstring) |
| Convert a C string into a text. More...
|
|
static text * | datetime_to_char_body (TmToChar *tmtc, text *fmt, bool is_interval, Oid collid) |
|
static DCHCacheEntry * | DCH_cache_fetch (const char *str, bool std) |
|
static DCHCacheEntry * | DCH_cache_getnew (const char *str, bool std) |
|
static DCHCacheEntry * | DCH_cache_search (const char *str, bool std) |
|
static int | DCH_datetime_type (FormatNode *node, bool *have_error) |
|
static void | DCH_from_char (FormatNode *node, const char *in, TmFromChar *out, Oid collid, bool std, bool *have_error) |
|
static void | DCH_prevent_counter_overflow (void) |
|
static void | DCH_to_char (FormatNode *node, bool is_interval, TmToChar *in, char *out, Oid collid) |
|
static void | do_to_timestamp (text *date_txt, text *fmt, Oid collid, bool std, struct pg_tm *tm, fsec_t *fsec, int *fprec, uint32 *flags, bool *have_error) |
|
static int | from_char_parse_int (int *dest, const char **src, FormatNode *node, bool *have_error) |
|
static int | from_char_parse_int_len (int *dest, const char **src, const int len, FormatNode *node, bool *have_error) |
|
static int | from_char_seq_search (int *dest, const char **src, const char *const *array, char **localized_array, Oid collid, FormatNode *node, bool *have_error) |
|
static void | from_char_set_int (int *dest, const int value, const FormatNode *node, bool *have_error) |
|
static void | from_char_set_mode (TmFromChar *tmfc, const FromCharDateMode mode, bool *have_error) |
|
static const char * | get_th (char *num, int type) |
|
static const KeyWord * | index_seq_search (const char *str, const KeyWord *kw, const int *index) |
|
static bool | is_next_separator (FormatNode *n) |
|
static bool | is_separator_char (const char *str) |
|
void | MEOSAdjustTimestampForTypmod (Timestamp *time, int32 typmod) |
|
static void | parse_format (FormatNode *node, const char *str, const KeyWord *kw, const KeySuffix *suf, const int *index, uint32 flags) |
|
text * | pg_interval_to_char (Interval *it, text *fmt) |
| Output an interval as text. More...
|
|
text * | pg_timestamp_to_char (Timestamp dt, text *fmt) |
| Output a timestamp as text. More...
|
|
text * | pg_timestamptz_to_char (TimestampTz dt, text *fmt) |
| Output a timestamptz as text. More...
|
|
DateADT | pg_to_date (text *date_txt, text *fmt) |
| Input a date from text. More...
|
|
TimestampTz | pg_to_timestamp (text *date_txt, text *fmt) |
| Input a timestamp from date text. More...
|
|
char * | pnstrdup (const char *in, Size size) |
| Return a copy of the string value. More...
|
|
bool | scanner_isspace (char ch) |
|
static int | seq_search_ascii (const char *name, const char *const *array, int *len) |
|
static int | seq_search_localized (const char *name, char **array, int *len, Oid collid) |
|
static char * | str_initcap_z (const char *buff, Oid collid) |
|
static char * | str_numth (char *dest, char *num, int type) |
|
static char * | str_tolower_z (const char *buff, Oid collid) |
|
static char * | str_toupper_z (const char *buff, Oid collid) |
|
static int | strspace_len (const char *str) |
|
static const KeySuffix * | suff_search (const char *str, const KeySuffix *suf, int type) |
|
char * | text2cstring (const text *textptr) |
| Convert a text into a C string. More...
|
|
|
static const char *const | adbc_strings [] = {ad_STR, bc_STR, AD_STR, BC_STR, NULL} |
|
static const char *const | adbc_strings_long [] = {a_d_STR, b_c_STR, A_D_STR, B_C_STR, NULL} |
|
static const char *const | ampm_strings [] = {am_STR, pm_STR, AM_STR, PM_STR, NULL} |
|
static const char *const | ampm_strings_long [] = {a_m_STR, p_m_STR, A_M_STR, P_M_STR, NULL} |
|
static const char *const | days_short [] |
|
static const int | DCH_index [KeyWord_INDEX_SIZE] |
|
static const KeyWord | DCH_keywords [] |
|
static const KeySuffix | DCH_suff [] |
|
static DCHCacheEntry * | DCHCache [DCH_CACHE_ENTRIES] |
|
static int | DCHCounter = 0 |
|
static const char *const | months_full [] |
|
static int | n_DCHCache = 0 |
|
static const char *const | numTH [] = {"ST", "ND", "RD", "TH", NULL} |
|
static const char *const | numth [] = {"st", "nd", "rd", "th", NULL} |
|
static const char *const | rm1 [] = {"I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", NULL} |
|
static const char *const | rm10 [] = {"X", "XX", "XXX", "XL", "L", "LX", "LXX", "LXXX", "XC", NULL} |
|
static const char *const | rm100 [] = {"C", "CC", "CCC", "CD", "D", "DC", "DCC", "DCCC", "CM", NULL} |
|
static const char *const | rm_months_lower [] |
|
static const char *const | rm_months_upper [] |
|