Rename OCharsetMap::find overload to findIanaName
Change-Id: Id3fe81b41b92d6ad4e3f7127331d859a7b3c7f54 Reviewed-on: https://gerrit.libreoffice.org/50779 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
parent
c40afac8a3
commit
ebb41767f3
@ -92,7 +92,7 @@ namespace dbtools
|
||||
}
|
||||
|
||||
|
||||
OCharsetMap::CharsetIterator OCharsetMap::find(const OUString& _rIanaName, const IANA&) const
|
||||
OCharsetMap::CharsetIterator OCharsetMap::findIanaName(const OUString& _rIanaName) const
|
||||
{
|
||||
ensureConstructed( );
|
||||
|
||||
|
@ -109,7 +109,7 @@ void OConnection::construct(const OUString& url,const Sequence< PropertyValue >&
|
||||
OSL_VERIFY( pIter->Value >>= sIanaName );
|
||||
|
||||
::dbtools::OCharsetMap aLookupIanaName;
|
||||
::dbtools::OCharsetMap::const_iterator aLookup = aLookupIanaName.find(sIanaName, ::dbtools::OCharsetMap::IANA());
|
||||
::dbtools::OCharsetMap::const_iterator aLookup = aLookupIanaName.findIanaName(sIanaName);
|
||||
if (aLookup != aLookupIanaName.end())
|
||||
m_nTextEncoding = (*aLookup).getEncoding();
|
||||
else
|
||||
|
@ -265,7 +265,7 @@ namespace connectivity
|
||||
if ( !sIanaName.isEmpty() )
|
||||
{
|
||||
::dbtools::OCharsetMap aLookupIanaName;
|
||||
::dbtools::OCharsetMap::const_iterator aLookup = aLookupIanaName.find(sIanaName, ::dbtools::OCharsetMap::IANA());
|
||||
::dbtools::OCharsetMap::const_iterator aLookup = aLookupIanaName.findIanaName(sIanaName);
|
||||
if (aLookup != aLookupIanaName.end() )
|
||||
{
|
||||
OUString sAdd;
|
||||
|
@ -231,7 +231,7 @@ SQLRETURN OConnection::Construct(const OUString& url,const Sequence< PropertyVal
|
||||
OSL_VERIFY( pBegin->Value >>= sIanaName );
|
||||
|
||||
::dbtools::OCharsetMap aLookupIanaName;
|
||||
::dbtools::OCharsetMap::const_iterator aLookup = aLookupIanaName.find(sIanaName, ::dbtools::OCharsetMap::IANA());
|
||||
::dbtools::OCharsetMap::const_iterator aLookup = aLookupIanaName.findIanaName(sIanaName);
|
||||
if (aLookup != aLookupIanaName.end())
|
||||
m_nTextEncoding = (*aLookup).getEncoding();
|
||||
else
|
||||
|
@ -63,7 +63,7 @@ namespace dbaui
|
||||
|
||||
OCharsetDisplay::const_iterator OCharsetDisplay::findIanaName(const OUString& _rIanaName) const
|
||||
{
|
||||
OCharsetMap::const_iterator aBaseIter = OCharsetMap::find(_rIanaName, OCharsetMap::IANA());
|
||||
OCharsetMap::const_iterator aBaseIter = OCharsetMap::findIanaName(_rIanaName);
|
||||
return const_iterator( this, aBaseIter );
|
||||
}
|
||||
|
||||
|
@ -67,8 +67,6 @@ namespace dbtools
|
||||
OCharsetMap();
|
||||
virtual ~OCharsetMap();
|
||||
|
||||
struct IANA { };
|
||||
|
||||
/** find the given text encoding in the map.
|
||||
@return the <em>end</em> iterator if the encoding could not be found.
|
||||
*/
|
||||
@ -76,7 +74,7 @@ namespace dbtools
|
||||
/** find the given IANA name in the map.
|
||||
@return the <em>end</em> iterator if the IANA name could not be found.
|
||||
*/
|
||||
CharsetIterator find(const OUString& _rIanaName, const IANA&) const;
|
||||
CharsetIterator findIanaName(const OUString& _rIanaName) const;
|
||||
|
||||
/// get access to the first element of the charset collection
|
||||
CharsetIterator begin() const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user