libpqxx
The C++ client library for PostgreSQL
encoding_group.hxx
Go to the documentation of this file.
1 
9 #ifndef PQXX_ENCODING_GROUP_HXX
10 #define PQXX_ENCODING_GROUP_HXX
11 
12 #include <cstddef>
13 
14 #include "pqxx/types.hxx"
15 
16 namespace pqxx
17 {
39 enum class encoding_group
40 {
42 
60  unknown,
61 
63 
72  ascii_safe,
73 
75 
84  two_tier,
85 
87 
89  gb18030,
90 
92  sjis,
93 };
94 } // namespace pqxx
95 
96 
97 namespace pqxx::internal
98 {
100 
110  std::size_t(std::string_view haystack, std::size_t start, sl);
111 } // namespace pqxx::internal
112 
113 #endif
Private namespace for libpqxx's internal use; do not access.
Definition: connection.cxx:333
std::size_t(std::string_view haystack, std::size_t start, sl) char_finder_func
Function type: "find first occurrence of any of these ASCII characters.".
Definition: encoding_group.hxx:110
The home of all libpqxx classes, functions, templates, etc.
Definition: array.cxx:26
std::source_location sl
Convenience alias for std::source_location. It's just too long.
Definition: types.hxx:38
encoding_group
Definition: encoding_group.hxx:40
@ two_tier
Low byte is ASCII, high byte starts a 2-byte character.
@ sjis
Non-ASCII-safe: Japanese JIS and Shift JIS.
@ unknown
Default: indeterminate encoding. All we know is it supports ASCII.
@ ascii_safe
"ASCII-safe" encodings.
@ gb18030
Non-ASCII-safe: GB18030 for Chinese (Traditional & Simplified).