PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "common/unicode_case.h"
#include "common/unicode_case_table.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, WordBoundaryNext wbnext, void *wbstate) |
pg_wchar | unicode_lowercase_simple (pg_wchar code) |
pg_wchar | unicode_titlecase_simple (pg_wchar code) |
pg_wchar | unicode_uppercase_simple (pg_wchar code) |
size_t | unicode_strlower (char *dst, size_t dstsize, const char *src, ssize_t srclen) |
size_t | unicode_strtitle (char *dst, size_t dstsize, const char *src, ssize_t srclen, WordBoundaryNext wbnext, void *wbstate) |
size_t | unicode_strupper (char *dst, size_t dstsize, const char *src, ssize_t srclen) |
|
static |
Definition at line 136 of file unicode_case.c.
References Assert, CaseLower, CaseTitle, CaseUpper, find_case_map(), pg_case_map::simplemap, unicode_to_utf8(), unicode_utf8len(), and utf8_to_unicode().
Referenced by unicode_strlower(), unicode_strtitle(), and unicode_strupper().
|
static |
Definition at line 202 of file unicode_case.c.
References Assert, case_map, pg_case_map::codepoint, and lengthof.
Referenced by convert_case(), unicode_lowercase_simple(), unicode_titlecase_simple(), and unicode_uppercase_simple().
Definition at line 28 of file unicode_case.c.
References CaseLower, find_case_map(), and pg_case_map::simplemap.
Referenced by pg_wc_tolower().
size_t unicode_strlower | ( | char * | dst, |
size_t | dstsize, | ||
const char * | src, | ||
ssize_t | srclen | ||
) |
Definition at line 68 of file unicode_case.c.
References CaseLower, and convert_case().
Referenced by str_tolower(), and test_strlower().
size_t unicode_strtitle | ( | char * | dst, |
size_t | dstsize, | ||
const char * | src, | ||
ssize_t | srclen, | ||
WordBoundaryNext | wbnext, | ||
void * | wbstate | ||
) |
Definition at line 99 of file unicode_case.c.
References CaseTitle, and convert_case().
Referenced by str_initcap().
size_t unicode_strupper | ( | char * | dst, |
size_t | dstsize, | ||
const char * | src, | ||
ssize_t | srclen | ||
) |
Definition at line 123 of file unicode_case.c.
References CaseUpper, and convert_case().
Referenced by str_toupper().
Definition at line 36 of file unicode_case.c.
References CaseTitle, find_case_map(), and pg_case_map::simplemap.
Definition at line 44 of file unicode_case.c.
References CaseUpper, find_case_map(), and pg_case_map::simplemap.
Referenced by pg_wc_toupper().