diff options
| author | Jeff Davis <jdavis@postgresql.org> | 2025-10-21 09:32:12 -0700 |
|---|---|---|
| committer | Jeff Davis <jdavis@postgresql.org> | 2025-10-21 09:32:12 -0700 |
| commit | ff53907c35713a9c0c8cbdcc8d82c54954cf8234 (patch) | |
| tree | 30a40172452e0df3abcae5d2dc3cdeec73e1354a /src/include/utils/pg_locale.h | |
| parent | 844385d12e7515f3461e53728f0a9358bc35b6a5 (diff) | |
Make char2wchar() static.
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://postgr.es/m/0151ad01239e2cc7b3139644358cf8f7b9622ff7.camel@j-davis.com
Diffstat (limited to 'src/include/utils/pg_locale.h')
| -rw-r--r-- | src/include/utils/pg_locale.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/include/utils/pg_locale.h b/src/include/utils/pg_locale.h index e6f939cb085..e08cb8228fa 100644 --- a/src/include/utils/pg_locale.h +++ b/src/include/utils/pg_locale.h @@ -139,10 +139,8 @@ struct ctype_methods * "default" collation, there are separate static cache variables, since * consulting the pg_collation catalog doesn't tell us what we need. * - * Note that some code relies on the flags not reporting false negatives - * (that is, saying it's not C when it is). For example, char2wchar() - * could fail if the locale is C, so str_tolower() shouldn't call it - * in that case. + * Note that some code, such as wchar2char(), relies on the flags not + * reporting false negatives (that is, saying it's not C when it is). */ struct pg_locale_struct { @@ -226,10 +224,8 @@ extern void icu_validate_locale(const char *loc_str); extern char *icu_language_tag(const char *loc_str, int elevel); extern void report_newlocale_failure(const char *localename); -/* These functions convert from/to libc's wchar_t, *not* pg_wchar_t */ +/* This function converts from libc's wchar_t, *not* pg_wchar_t */ extern size_t wchar2char(char *to, const wchar_t *from, size_t tolen, locale_t loc); -extern size_t char2wchar(wchar_t *to, size_t tolen, - const char *from, size_t fromlen, locale_t loc); #endif /* _PG_LOCALE_ */ |
