PostgreSQL Source Code git master
|
#include "postgres.h"
#include "common/unicode_case.h"
#include "common/unicode_case_table.h"
#include "common/unicode_category.h"
#include "mb/pg_wchar.h"
Go to the source code of this file.
Functions | |
static const pg_case_map * | find_case_map (pg_wchar ucs) |
static size_t | convert_case (char *dst, size_t dstsize, const char *src, ssize_t srclen, CaseKind str_casekind, bool full, WordBoundaryNext wbnext, void *wbstate) |
static bool | check_special_conditions (int conditions, const char *str, size_t len, size_t offset) |
pg_wchar | unicode_lowercase_simple (pg_wchar code) |
pg_wchar | unicode_titlecase_simple (pg_wchar code) |
pg_wchar | unicode_uppercase_simple (pg_wchar code) |
pg_wchar | unicode_casefold_simple (pg_wchar code) |
size_t | unicode_strlower (char *dst, size_t dstsize, const char *src, ssize_t srclen, bool full) |
size_t | unicode_strtitle (char *dst, size_t dstsize, const char *src, ssize_t srclen, bool full, WordBoundaryNext wbnext, void *wbstate) |
size_t | unicode_strupper (char *dst, size_t dstsize, const char *src, ssize_t srclen, bool full) |
size_t | unicode_strfold (char *dst, size_t dstsize, const char *src, ssize_t srclen, bool full) |
static bool | check_final_sigma (const unsigned char *str, size_t len, size_t offset) |
|
static |
Definition at line 301 of file unicode_case.c.
References Assert, i, len, pg_u_prop_case_ignorable(), pg_u_prop_cased(), str, and utf8_to_unicode().
Referenced by check_special_conditions().
|
static |
Definition at line 355 of file unicode_case.c.
References Assert, check_final_sigma(), len, PG_U_FINAL_SIGMA, and str.
Referenced by convert_case().
|
static |
Definition at line 194 of file unicode_case.c.
References Assert, CaseLower, CaseTitle, CaseUpper, check_special_conditions(), pg_special_case::codepoint, pg_special_case::conditions, find_case_map(), i, pg_special_case::map, MAX_CASE_EXPANSION, pg_case_map::simplemap, pg_case_map::special_case, unicode_to_utf8(), unicode_utf8len(), and utf8_to_unicode().
Referenced by unicode_strfold(), unicode_strlower(), unicode_strtitle(), and unicode_strupper().
|
static |
Definition at line 370 of file unicode_case.c.
References Assert, case_map, pg_case_map::codepoint, and lengthof.
Referenced by convert_case(), unicode_casefold_simple(), unicode_lowercase_simple(), unicode_titlecase_simple(), and unicode_uppercase_simple().
Definition at line 55 of file unicode_case.c.
References CaseFold, find_case_map(), and pg_case_map::simplemap.
Definition at line 31 of file unicode_case.c.
References CaseLower, find_case_map(), and pg_case_map::simplemap.
Referenced by pg_wc_tolower().
size_t unicode_strfold | ( | char * | dst, |
size_t | dstsize, | ||
const char * | src, | ||
ssize_t | srclen, | ||
bool | full | ||
) |
Definition at line 170 of file unicode_case.c.
References CaseFold, and convert_case().
Referenced by strfold_builtin(), and tfunc_fold().
size_t unicode_strlower | ( | char * | dst, |
size_t | dstsize, | ||
const char * | src, | ||
ssize_t | srclen, | ||
bool | full | ||
) |
Definition at line 82 of file unicode_case.c.
References CaseLower, and convert_case().
Referenced by strlower_builtin(), and tfunc_lower().
size_t unicode_strtitle | ( | char * | dst, |
size_t | dstsize, | ||
const char * | src, | ||
ssize_t | srclen, | ||
bool | full, | ||
WordBoundaryNext | wbnext, | ||
void * | wbstate | ||
) |
Definition at line 119 of file unicode_case.c.
References CaseTitle, and convert_case().
Referenced by strtitle_builtin(), and tfunc_title().
size_t unicode_strupper | ( | char * | dst, |
size_t | dstsize, | ||
const char * | src, | ||
ssize_t | srclen, | ||
bool | full | ||
) |
Definition at line 146 of file unicode_case.c.
References CaseUpper, and convert_case().
Referenced by strupper_builtin(), and tfunc_upper().
Definition at line 39 of file unicode_case.c.
References CaseTitle, find_case_map(), and pg_case_map::simplemap.
Definition at line 47 of file unicode_case.c.
References CaseUpper, find_case_map(), and pg_case_map::simplemap.
Referenced by pg_wc_toupper().