aboutsummaryrefslogtreecommitdiff
path: root/src/common/unicode_case.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2024-05-14 16:34:50 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2024-05-14 16:34:50 -0400
commitda256a4a7fdcca35fe7ca808686ad3de6ee22306 (patch)
tree863d6a21cd148b40add73ae45bdedcf0acc001ee /src/common/unicode_case.c
parent3ddbac368c205fce1f293de1fe60c1b479800746 (diff)
downloadpostgresql-da256a4a7fdcca35fe7ca808686ad3de6ee22306.tar.gz
postgresql-da256a4a7fdcca35fe7ca808686ad3de6ee22306.zip
Pre-beta mechanical code beautification.
Run pgindent, pgperltidy, and reformat-dat-files. The pgindent part of this is pretty small, consisting mainly of fixing up self-inflicted formatting damage from patches that hadn't bothered to add their new typedefs to typedefs.list. In order to keep it from making anything worse, I manually added a dozen or so typedefs that appeared in the existing typedefs.list but not in the buildfarm's list. Perhaps we should formalize that, or better find a way to get those typedefs into the automatic list. pgperltidy is as opinionated as always, and reformat-dat-files too.
Diffstat (limited to 'src/common/unicode_case.c')
-rw-r--r--src/common/unicode_case.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/unicode_case.c b/src/common/unicode_case.c
index bc423b0890c..89992799930 100644
--- a/src/common/unicode_case.c
+++ b/src/common/unicode_case.c
@@ -28,7 +28,7 @@ static size_t convert_case(char *dst, size_t dstsize, const char *src, ssize_t s
pg_wchar
unicode_lowercase_simple(pg_wchar code)
{
- const pg_case_map *map = find_case_map(code);
+ const pg_case_map *map = find_case_map(code);
return map ? map->simplemap[CaseLower] : code;
}
@@ -36,7 +36,7 @@ unicode_lowercase_simple(pg_wchar code)
pg_wchar
unicode_titlecase_simple(pg_wchar code)
{
- const pg_case_map *map = find_case_map(code);
+ const pg_case_map *map = find_case_map(code);
return map ? map->simplemap[CaseTitle] : code;
}
@@ -44,7 +44,7 @@ unicode_titlecase_simple(pg_wchar code)
pg_wchar
unicode_uppercase_simple(pg_wchar code)
{
- const pg_case_map *map = find_case_map(code);
+ const pg_case_map *map = find_case_map(code);
return map ? map->simplemap[CaseUpper] : code;
}
@@ -156,7 +156,7 @@ convert_case(char *dst, size_t dstsize, const char *src, ssize_t srclen,
{
pg_wchar u1 = utf8_to_unicode((unsigned char *) src + srcoff);
int u1len = unicode_utf8len(u1);
- const pg_case_map *casemap = find_case_map(u1);
+ const pg_case_map *casemap = find_case_map(u1);
if (str_casekind == CaseTitle)
{
@@ -210,7 +210,7 @@ find_case_map(pg_wchar ucs)
Assert(lengthof(case_map) >= 0x80);
if (ucs < 0x80)
{
- const pg_case_map *map = &case_map[ucs];
+ const pg_case_map *map = &case_map[ucs];
Assert(map->codepoint == ucs);
return map;