libpqxx
The C++ client library for PostgreSQL
pqxx::internal::glyph_scanner< encoding_group > Struct Template Referencefinal

Wrapper struct template for "find next glyph" functions. More...

#include <encodings.hxx>

Static Public Member Functions

static constexpr std::size_t call (std::string_view, std::size_t start, sl)
 Find the next glyph in buffer after position start. More...
 

Detailed Description

template<encoding_group>
struct pqxx::internal::glyph_scanner< encoding_group >

Wrapper struct template for "find next glyph" functions.

When we use this, all we really want is a function pointer. But that won't work, because the template specialisation we use will only work (under current C++ rules) for a struct or class, not for a function.

Member Function Documentation

◆ call()

template<encoding_group >
static constexpr std::size_t pqxx::internal::glyph_scanner< encoding_group >::call ( std::string_view  ,
std::size_t  start,
sl   
)
inlinestaticconstexpr

Find the next glyph in buffer after position start.

The starting point must lie inside the view.


The documentation for this struct was generated from the following file: