mirror of
https://github.com/postgres/postgres.git
synced 2026-02-14 08:13:27 -05:00
Make sure that function declarations use names that exactly match the
corresponding names from function definitions in a few places. These
inconsistencies were all introduced during Postgres 17 development.
pg_bsd_indent still has a couple of similar inconsistencies, which I
(pgeoghegan) have left untouched for now.
This commit was written with help from clang-tidy, by mechanically
applying the same rules as similar clean-up commits (the earliest such
commit was commit 035ce1fe).
32 lines
1 KiB
C
32 lines
1 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* unicode_case.h
|
|
* Routines for converting character case.
|
|
*
|
|
* These definitions can be used by both frontend and backend code.
|
|
*
|
|
* Copyright (c) 2017-2024, PostgreSQL Global Development Group
|
|
*
|
|
* src/include/common/unicode_case.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef UNICODE_CASE_H
|
|
#define UNICODE_CASE_H
|
|
|
|
#include "mb/pg_wchar.h"
|
|
|
|
typedef size_t (*WordBoundaryNext) (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);
|
|
|
|
#endif /* UNICODE_CASE_H */
|