Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
618463a4
Kaydet (Commit)
618463a4
authored
Kas 17, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Simplify down to a single appendSQLWCHARs function
Change-Id: I882746f9c4a1c332c6657b93f104ecbf1c7be6f1
üst
9579e458
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
72 deletions
+14
-72
Library_odbc.mk
connectivity/Library_odbc.mk
+0
-1
OTools.cxx
connectivity/source/drivers/odbc/OTools.cxx
+14
-2
appendsqlwchars.cxx
connectivity/source/drivers/odbc/appendsqlwchars.cxx
+0
-38
appendsqlwchars.hxx
connectivity/source/drivers/odbc/appendsqlwchars.hxx
+0
-30
unusedcode.easy
unusedcode.easy
+0
-1
No files found.
connectivity/Library_odbc.mk
Dosyayı görüntüle @
618463a4
...
...
@@ -45,7 +45,6 @@ $(eval $(call gb_Library_use_libraries,odbc,\
))
$(eval $(call gb_Library_add_exception_objects,odbc,\
connectivity/source/drivers/odbc/appendsqlwchars \
connectivity/source/drivers/odbc/oservices \
connectivity/source/drivers/odbc/ORealDriver \
connectivity/source/drivers/odbc/OFunctions \
...
...
connectivity/source/drivers/odbc/OTools.cxx
Dosyayı görüntüle @
618463a4
...
...
@@ -24,8 +24,6 @@
#include "odbc/OConnection.hxx"
#include <rtl/ustrbuf.hxx>
#include <appendsqlwchars.hxx>
#include <string.h>
#include <string>
#include <algorithm>
...
...
@@ -107,6 +105,20 @@ size_t sqlTypeLen ( SQLSMALLINT _nType )
return
static_cast
<
size_t
>
(
-
1
);
}
}
void
appendSQLWCHARs
(
OUStringBuffer
&
s
,
SQLWCHAR
const
*
d
,
sal_Int32
n
)
{
static_assert
(
sizeof
(
SQLWCHAR
)
==
sizeof
(
sal_Unicode
)
||
sizeof
(
SQLWCHAR
)
==
4
,
"bad SQLWCHAR"
);
if
(
sizeof
(
SQLWCHAR
)
==
sizeof
(
sal_Unicode
))
{
s
.
append
(
reinterpret_cast
<
sal_Unicode
const
*>
(
d
),
n
);
}
else
{
for
(
sal_Int32
i
=
0
;
i
!=
n
;
++
i
)
{
s
.
appendUtf32
(
d
[
i
]);
}
}
}
}
...
...
connectivity/source/drivers/odbc/appendsqlwchars.cxx
deleted
100644 → 0
Dosyayı görüntüle @
9579e458
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <sal/config.h>
#include <rtl/ustrbuf.hxx>
#include <sal/types.h>
#include <appendsqlwchars.hxx>
namespace
connectivity
{
namespace
odbc
{
void
appendSQLWCHARs
(
OUStringBuffer
&
s
,
const
sal_Unicode
*
d
,
sal_Int32
n
)
{
s
.
append
(
d
,
n
);
}
#if defined SAL_UNICODE_NOTEQUAL_WCHAR_T
static_assert
(
sizeof
(
wchar_t
)
==
4
,
"sizeof wchar_t must be 4 for this to work"
);
void
appendSQLWCHARs
(
OUStringBuffer
&
s
,
const
wchar_t
*
d
,
sal_Int32
n
)
{
const
wchar_t
*
const
end
=
d
+
n
;
for
(;
d
<
end
;
++
d
)
{
s
.
appendUtf32
(
*
d
);
}
}
#endif
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
connectivity/source/drivers/odbc/appendsqlwchars.hxx
deleted
100644 → 0
Dosyayı görüntüle @
9579e458
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_ODBC_APPENDSQLWCHARS_HXX
#define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_ODBC_APPENDSQLWCHARS_HXX
#include <sal/config.h>
#include <rtl/ustrbuf.hxx>
#include <sal/types.h>
namespace
connectivity
{
namespace
odbc
{
void
appendSQLWCHARs
(
OUStringBuffer
&
s
,
const
sal_Unicode
*
d
,
sal_Int32
n
);
#if defined SAL_UNICODE_NOTEQUAL_WCHAR_T
void
appendSQLWCHARs
(
OUStringBuffer
&
s
,
const
wchar_t
*
d
,
sal_Int32
n
);
#endif
}
}
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
unusedcode.easy
Dosyayı görüntüle @
618463a4
...
...
@@ -75,7 +75,6 @@ comphelper::detail::ConfigurationWrapper::getGroupReadWrite(std::shared_ptr<comp
comphelper::detail::ConfigurationWrapper::getLocalizedPropertyValue(rtl::OUString const&) const
comphelper::detail::ConfigurationWrapper::setLocalizedPropertyValue(std::shared_ptr<comphelper::ConfigurationChanges> const&, rtl::OUString const&, com::sun::star::uno::Any const&)
connectivity::firebird::release(int&, cppu::OBroadcastHelperVar<cppu::OMultiTypeInterfaceContainerHelper, com::sun::star::uno::Type>&, com::sun::star::uno::Reference<com::sun::star::uno::XInterface>&, com::sun::star::lang::XComponent*)
connectivity::odbc::appendSQLWCHARs(rtl::OUStringBuffer&, wchar_t const*, int)
connectivity::sdbcx::OGroup::OGroup(bool)
connectivity::sdbcx::OGroup::OGroup(rtl::OUString const&, bool)
dbaccess::OBookmarkContainer::dispose()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment