libpqxx
The C++ client library for PostgreSQL
Loading...
Searching...
No Matches
encoding_group.hxx
Go to the documentation of this file.
1
9#ifndef PQXX_H_ENCODING_GROUP
10#define PQXX_H_ENCODING_GROUP
11
12#include <cstddef>
13
14namespace pqxx::internal
15{
16// Types of encodings supported by PostgreSQL, see
17// https://www.postgresql.org/docs/current/static/multibyte.html#CHARSET-TABLE
19{
20 // Handles all single-byte fixed-width encodings
22
23 // Multibyte encodings.
24 // Many of these can embed ASCII-like bytes inside multibyte characters,
25 // notably Big5, SJIS, SHIFT_JIS_2004, GP18030, GBK, JOHAB, UHC.
38};
39
40
41// TODO: Get rid of these. Specialise at higher level.
43
53 std::size_t(char const buffer[], std::size_t buffer_len, std::size_t start);
54
55
57
71 std::size_t(std::string_view haystack, std::size_t start);
72} // namespace pqxx::internal
73
74#endif
Internal items for libpqxx' own use. Do not use these yourself.
Definition encodings.cxx:33
encoding_group
Definition encoding_group.hxx:19
@ EUC_KR
Definition encoding_group.hxx:29
@ EUC_JP
Definition encoding_group.hxx:28
@ GB18030
Definition encoding_group.hxx:31
@ EUC_CN
Definition encoding_group.hxx:27
@ BIG5
Definition encoding_group.hxx:26
@ EUC_TW
Definition encoding_group.hxx:30
@ JOHAB
Definition encoding_group.hxx:33
@ MULE_INTERNAL
Definition encoding_group.hxx:34
@ GBK
Definition encoding_group.hxx:32
@ SJIS
Definition encoding_group.hxx:35
@ MONOBYTE
Definition encoding_group.hxx:21
@ UHC
Definition encoding_group.hxx:36
@ UTF8
Definition encoding_group.hxx:37
std::size_t(std::string_view haystack, std::size_t start) char_finder_func
Function type: "find first occurrence of specific any of ASCII characters.".
Definition encoding_group.hxx:70
std::size_t(char const buffer[], std::size_t buffer_len, std::size_t start) glyph_scanner_func
Function type: "find the end of the current glyph.".
Definition encoding_group.hxx:52