PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
char * | str_tolower (const char *buff, size_t nbytes, Oid collid) |
char * | str_toupper (const char *buff, size_t nbytes, Oid collid) |
char * | str_initcap (const char *buff, size_t nbytes, Oid collid) |
char * | asc_tolower (const char *buff, size_t nbytes) |
char * | asc_toupper (const char *buff, size_t nbytes) |
char * | asc_initcap (const char *buff, size_t nbytes) |
Datum | parse_datetime (text *date_txt, text *fmt, Oid collid, bool strict, Oid *typid, int32 *typmod, int *tz, struct Node *escontext) |
bool | datetime_format_has_tz (const char *fmt_str) |
char* asc_initcap | ( | const char * | buff, |
size_t | nbytes | ||
) |
Definition at line 2177 of file formatting.c.
References pg_ascii_tolower(), pg_ascii_toupper(), and pnstrdup().
Referenced by str_initcap().
char* asc_tolower | ( | const char * | buff, |
size_t | nbytes | ||
) |
Definition at line 2131 of file formatting.c.
References pg_ascii_tolower(), and pnstrdup().
Referenced by asc_tolower_z(), and str_tolower().
char* asc_toupper | ( | const char * | buff, |
size_t | nbytes | ||
) |
Definition at line 2154 of file formatting.c.
References pg_ascii_toupper(), and pnstrdup().
Referenced by asc_toupper_z(), and str_toupper().
bool datetime_format_has_tz | ( | const char * | fmt_str | ) |
Definition at line 4591 of file formatting.c.
References DCH_cache_fetch(), DCH_CACHE_SIZE, DCH_datetime_type(), DCH_FLAG, DCH_index, DCH_keywords, DCH_suff, DCH_ZONED, DCHCacheEntry::format, format, palloc(), parse_format(), and pfree().
Datum parse_datetime | ( | text * | date_txt, |
text * | fmt, | ||
Oid | collid, | ||
bool | strict, | ||
Oid * | typid, | ||
int32 * | typmod, | ||
int * | tz, | ||
struct Node * | escontext | ||
) |
Definition at line 4428 of file formatting.c.
References AdjustTimeForTypmod(), AdjustTimestampForTypmod(), Assert(), collid, date2j(), DateADTGetDatum(), DCH_DATED, DCH_TIMED, DCH_ZONED, do_to_timestamp(), ereturn, errcode(), errmsg(), fmt, fmt_tz::gmtoffset, fmt_tz::has_tz, IS_VALID_DATE, IS_VALID_JULIAN, palloc(), POSTGRES_EPOCH_JDATE, text_to_cstring(), TimeTzADT::time, TimeADTGetDatum(), TimestampGetDatum(), TimestampTzGetDatum(), TimeTzADTPGetDatum(), tm, tm2time(), tm2timestamp(), tm2timetz(), pg_tm::tm_mday, pg_tm::tm_mon, and pg_tm::tm_year.
Referenced by executeDateTimeMethod().
char* str_initcap | ( | const char * | buff, |
size_t | nbytes, | ||
Oid | collid | ||
) |
Definition at line 1932 of file formatting.c.
References asc_initcap(), Assert(), char2wchar(), collid, ereport, errcode(), errhint(), errmsg(), ERROR, GetDatabaseEncoding(), pg_locale_struct::info, isalnum_l, iswalnum_l, lc_ctype_is_c(), pg_locale_struct::lt, MAX_MULTIBYTE_CHAR_LEN, OidIsValid, palloc(), pfree(), pg_database_encoding_max_length(), pg_newlocale_from_collation(), pg_tolower(), pg_toupper(), pg_u_isalnum(), PG_UTF8, pnstrdup(), pg_locale_struct::provider, tolower_l, toupper_l, towlower_l, towupper_l, unicode_lowercase_simple(), unicode_to_utf8(), unicode_uppercase_simple(), unicode_utf8len(), utf8_to_unicode(), and wchar2char().
Referenced by initcap(), and str_initcap_z().
char* str_tolower | ( | const char * | buff, |
size_t | nbytes, | ||
Oid | collid | ||
) |
Definition at line 1636 of file formatting.c.
References asc_tolower(), Assert(), char2wchar(), collid, ereport, errcode(), errhint(), errmsg(), ERROR, GetDatabaseEncoding(), pg_locale_struct::info, lc_ctype_is_c(), pg_locale_struct::lt, OidIsValid, palloc(), pfree(), pg_database_encoding_max_length(), pg_newlocale_from_collation(), pg_tolower(), PG_UTF8, pnstrdup(), pg_locale_struct::provider, repalloc(), tolower_l, towlower_l, unicode_strlower(), and wchar2char().
Referenced by citext_eq(), citext_hash(), citext_hash_extended(), citext_ne(), citextcmp(), internal_citext_pattern_cmp(), lower(), ltree_strncasecmp(), seq_search_localized(), and str_tolower_z().
char* str_toupper | ( | const char * | buff, |
size_t | nbytes, | ||
Oid | collid | ||
) |
Definition at line 1784 of file formatting.c.
References asc_toupper(), Assert(), char2wchar(), collid, ereport, errcode(), errhint(), errmsg(), ERROR, GetDatabaseEncoding(), pg_locale_struct::info, lc_ctype_is_c(), pg_locale_struct::lt, OidIsValid, palloc(), pfree(), pg_database_encoding_max_length(), pg_newlocale_from_collation(), pg_toupper(), PG_UTF8, pnstrdup(), pg_locale_struct::provider, repalloc(), toupper_l, towupper_l, unicode_strupper(), and wchar2char().
Referenced by seq_search_localized(), str_toupper_z(), and upper().