|
LibreOffice Module connectivity (master) 1
|
is a class which translates between different charset representations. More...
#include <dbcharset.hxx>
Public Types | |
| typedef CharsetIterator | iterator |
| typedef CharsetIterator | const_iterator |
Public Member Functions | |
| OCharsetMap () | |
| virtual | ~OCharsetMap () |
| CharsetIterator | find (const rtl_TextEncoding _eEncoding) const |
| find the given text encoding in the map. More... | |
| CharsetIterator | findIanaName (std::u16string_view _rIanaName) const |
| find the given IANA name in the map. More... | |
| CharsetIterator | begin () const |
| get access to the first element of the charset collection More... | |
| CharsetIterator | end () const |
| get access to the (last + 1st) element of the charset collection More... | |
| CharsetIteratorDerefHelper | operator* () const |
| const CharsetIterator & | operator++ () |
| prefix increment More... | |
| const CharsetIterator & | operator-- () |
| prefix decrement More... | |
Protected Types | |
| typedef std::set< rtl_TextEncoding > | TextEncBag |
Protected Member Functions | |
| void | lateConstruct () |
| void | ensureConstructed () const |
| virtual bool | approveEncoding (const rtl_TextEncoding _eEncoding, const rtl_TextEncodingInfo &_rInfo) const |
| CharsetIterator (const OCharsetMap *_pContainer, OCharsetMap::TextEncBag::const_iterator _aPos) | |
Protected Attributes | |
| TextEncBag | m_aEncodings |
Private Attributes | |
| const OCharsetMap * | m_pContainer |
| OCharsetMap::TextEncBag::const_iterator | m_aPos |
Friends | |
| class | OCharsetMap::CharsetIterator |
| class | OCharsetMap |
| OOO_DLLPUBLIC_DBTOOLS bool | operator== (const CharsetIterator &lhs, const CharsetIterator &rhs) |
| bool | operator!= (const CharsetIterator &lhs, const CharsetIterator &rhs) |
is a class which translates between different charset representations.
The set of recognized charsets is very limited: only the ones which are database relevant are implemented at the moment
Possible representations are:
Definition at line 53 of file dbcharset.hxx.
Definition at line 64 of file dbcharset.hxx.
Definition at line 63 of file dbcharset.hxx.
|
protected |
Definition at line 56 of file dbcharset.hxx.
| dbtools::OCharsetMap::OCharsetMap | ( | ) |
References begin, end, and connectivity::find().
|
virtual |
Definition at line 77 of file dbcharset.cxx.
|
protectedvirtual |
Definition at line 68 of file dbcharset.cxx.
Referenced by lateConstruct().
| OCharsetMap::CharsetIterator dbtools::OCharsetMap::begin | ( | ) | const |
get access to the first element of the charset collection
Definition at line 82 of file dbcharset.cxx.
References CharsetIterator(), ensureConstructed(), and m_aEncodings.
|
protected |
| OCharsetMap::CharsetIterator dbtools::OCharsetMap::end | ( | ) | const |
get access to the (last + 1st) element of the charset collection
Definition at line 118 of file dbcharset.cxx.
References CharsetIterator(), ensureConstructed(), and m_aEncodings.
Referenced by connectivity::odbc::OConnection::Construct(), findIanaName(), and lateConstruct().
|
inlineprotected |
Definition at line 86 of file dbcharset.hxx.
Referenced by begin(), end(), find(), and findIanaName().
| OCharsetMap::CharsetIterator dbtools::OCharsetMap::find | ( | const rtl_TextEncoding | _eEncoding | ) | const |
find the given text encoding in the map.
Definition at line 89 of file dbcharset.cxx.
References CharsetIterator(), ensureConstructed(), and m_aEncodings.
Referenced by findIanaName(), and lateConstruct().
| OCharsetMap::CharsetIterator dbtools::OCharsetMap::findIanaName | ( | std::u16string_view | _rIanaName | ) | const |
find the given IANA name in the map.
Definition at line 96 of file dbcharset.cxx.
References end(), ensureConstructed(), find(), and pq_sdbc_driver::OUStringToOString().
Referenced by connectivity::odbc::OConnection::Construct().
|
protected |
Definition at line 34 of file dbcharset.cxx.
References approveEncoding(), end(), find(), and m_aEncodings.
| CharsetIteratorDerefHelper dbtools::OCharsetMap::operator* | ( | ) | const |
| const CharsetIterator & dbtools::OCharsetMap::operator++ | ( | ) |
prefix increment
| const CharsetIterator & dbtools::OCharsetMap::operator-- | ( | ) |
prefix decrement
|
friend |
Definition at line 117 of file dbcharset.hxx.
|
friend |
Definition at line 62 of file dbcharset.hxx.
|
friend |
Definition at line 120 of file dbcharset.hxx.
|
friend |
|
protected |
Definition at line 58 of file dbcharset.hxx.
Referenced by begin(), end(), find(), and lateConstruct().
|
private |
Definition at line 125 of file dbcharset.hxx.
|
private |
Definition at line 124 of file dbcharset.hxx.