#include <binarystring.hxx>
|
(Note that these are not member functions.)
|
| std::string | escape_binary (const std::string &bin) |
| | Escape binary string for inclusion in SQL. More...
|
| |
| std::string | escape_binary (const char bin[]) |
| | Escape binary string for inclusion in SQL. More...
|
| |
| std::string | escape_binary (const char bin[], size_t len) |
| | Escape binary string for inclusion in SQL. More...
|
| |
| std::string | escape_binary (const unsigned char bin[]) |
| | Escape binary string for inclusion in SQL. More...
|
| |
| std::string | escape_binary (const unsigned char bin[], size_t len) |
| | Escape binary string for inclusion in SQL. More...
|
| |
§ char_type
§ const_iterator
§ const_pointer
§ const_reference
§ difference_type
§ size_type
§ value_type
§ binarystring() [1/3]
| pqxx::binarystring::binarystring |
( |
const field & |
F | ) |
|
|
explicit |
§ binarystring() [2/3]
| pqxx::binarystring::binarystring |
( |
const std::string & |
s | ) |
|
|
explicit |
§ binarystring() [3/3]
| pqxx::binarystring::binarystring |
( |
const void * |
binary_data, |
|
|
size_t |
len |
|
) |
| |
§ at()
§ back()
§ begin()
§ data()
| const value_type* pqxx::binarystring::data |
( |
| ) |
const |
| throw | ( | |
| ) | | |
§ empty()
| bool pqxx::binarystring::empty |
( |
| ) |
const |
| throw | ( | |
| ) | | |
§ end()
§ front()
§ get()
| const char* pqxx::binarystring::get |
( |
| ) |
const |
| throw | ( | |
| ) | | |
Raw character buffer (no terminating zero is added)
- Warning
- No terminating zero is added! If the binary data did not end in a null character, you will not find one here.
References pqxx::escape_binary().
§ length()
| size_type pqxx::binarystring::length |
( |
| ) |
const |
| throw | ( | |
| ) | | |
Size of converted string in bytes.
§ operator!=()
§ operator==()
| bool pqxx::binarystring::operator== |
( |
const binarystring & |
rhs | ) |
const |
| throw | ( | |
| ) | | |
§ operator[]()
§ size()
| size_type pqxx::binarystring::size |
( |
| ) |
const |
| throw | ( | |
| ) | | |
§ str()
| string pqxx::binarystring::str |
( |
| ) |
const |
Read as regular C++ string (may include null characters)
- Warning
- libpqxx releases before 3.1 stored the string and returned a reference to it. This is no longer the case! It now creates and returns a new string object. Avoid repeated use of this function; retrieve your string once and keep it in a local variable. Also, do not expect to be able to compare the string's address to that of an earlier invocation.
§ swap()
The documentation for this class was generated from the following files: