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 2159 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 2113 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 2136 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 4573 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 4410 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 1951 of file formatting.c.
References asc_initcap(), Assert, char2wchar(), collid, pg_locale_struct::ctype_is_c, ereport, errcode(), errhint(), errmsg(), ERROR, GetDatabaseEncoding(), pg_locale_struct::info, WordBoundaryState::init, initcap_wbnext(), isalnum_l, iswalnum_l, pg_locale_struct::lt, WordBoundaryState::offset, OidIsValid, palloc(), pfree(), pg_database_encoding_max_length(), pg_newlocale_from_collation(), PG_UTF8, pnstrdup(), pg_locale_struct::provider, repalloc(), WordBoundaryState::str, tolower_l, toupper_l, towlower_l, towupper_l, unicode_strtitle(), 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, pg_locale_struct::ctype_is_c, ereport, errcode(), errhint(), errmsg(), ERROR, GetDatabaseEncoding(), pg_locale_struct::info, pg_locale_struct::lt, OidIsValid, palloc(), pfree(), pg_database_encoding_max_length(), pg_newlocale_from_collation(), 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 1773 of file formatting.c.
References asc_toupper(), Assert, char2wchar(), collid, pg_locale_struct::ctype_is_c, ereport, errcode(), errhint(), errmsg(), ERROR, GetDatabaseEncoding(), pg_locale_struct::info, pg_locale_struct::lt, OidIsValid, palloc(), pfree(), pg_database_encoding_max_length(), pg_newlocale_from_collation(), 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().