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
f51877b1
Kaydet (Commit)
f51877b1
authored
Ara 06, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Combine comphelper::UStringMixEqual, comphelper::TStringMixEqualFunctor
Change-Id: I3ab3777a65fd68f8cbaf17a8e2a989dc4ad7b1cc
üst
02f9f422
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
20 additions
and
36 deletions
+20
-36
AColumn.cxx
connectivity/source/drivers/ado/AColumn.cxx
+1
-1
AColumns.cxx
connectivity/source/drivers/ado/AColumns.cxx
+1
-1
AConnection.cxx
connectivity/source/drivers/ado/AConnection.cxx
+1
-1
SingleSelectQueryComposer.cxx
dbaccess/source/core/api/SingleSelectQueryComposer.cxx
+2
-3
tabletree.cxx
dbaccess/source/ui/control/tabletree.cxx
+1
-1
adtabdlg.cxx
dbaccess/source/ui/dlg/adtabdlg.cxx
+1
-1
WColumnSelect.hxx
dbaccess/source/ui/inc/WColumnSelect.hxx
+3
-3
WCopyTable.hxx
dbaccess/source/ui/inc/WCopyTable.hxx
+2
-2
UITools.cxx
dbaccess/source/ui/misc/UITools.cxx
+1
-1
WColumnSelect.cxx
dbaccess/source/ui/misc/WColumnSelect.cxx
+5
-5
stl_types.hxx
include/comphelper/stl_types.hxx
+2
-17
No files found.
connectivity/source/drivers/ado/AColumn.cxx
Dosyayı görüntüle @
f51877b1
...
...
@@ -214,7 +214,7 @@ void OAdoColumn::fillPropertyValues()
m_TypeName
=
pTypeInfo
->
aSimpleType
.
aTypeName
;
else
if
(
eType
==
adVarBinary
&&
ADOS
::
isJetEngine
(
m_pConnection
->
getEngineType
())
)
{
::
comphelper
::
TStringMixEqualFunctor
aCase
(
sal_False
);
::
comphelper
::
UStringMixEqual
aCase
(
sal_False
);
OTypeInfoMap
::
const_iterator
aFind
=
::
std
::
find_if
(
pTypeInfoMap
->
begin
(),
pTypeInfoMap
->
end
(),
::
o3tl
::
compose1
(
...
...
connectivity/source/drivers/ado/AColumns.cxx
Dosyayı görüntüle @
f51877b1
...
...
@@ -86,7 +86,7 @@ sdbcx::ObjectType OColumns::appendObject( const OUString&, const Reference< XPro
pColumn
->
getPropertyValue
(
OMetaConnection
::
getPropMap
().
getNameByIndex
(
PROPERTY_ID_TYPENAME
))
>>=
sTypeName
;
const
OTypeInfoMap
*
pTypeInfoMap
=
m_pConnection
->
getTypeInfo
();
::
comphelper
::
TStringMixEqualFunctor
aCase
(
sal_False
);
::
comphelper
::
UStringMixEqual
aCase
(
sal_False
);
// search for typeinfo where the typename is equal sTypeName
OTypeInfoMap
::
const_iterator
aFind
=
::
std
::
find_if
(
pTypeInfoMap
->
begin
(),
pTypeInfoMap
->
end
(),
...
...
connectivity/source/drivers/ado/AConnection.cxx
Dosyayı görüntüle @
f51877b1
...
...
@@ -596,7 +596,7 @@ const OExtendedTypeInfo* OConnection::getTypeInfoFromType(const OTypeInfoMap& _r
}
else
if
(
_sTypeName
.
getLength
()
)
{
::
comphelper
::
TStringMixEqualFunctor
aCase
(
sal_False
);
::
comphelper
::
UStringMixEqual
aCase
(
sal_False
);
// search for typeinfo where the typename is equal _sTypeName
OTypeInfoMap
::
const_iterator
aFind
=
::
std
::
find_if
(
_rTypeInfo
.
begin
(),
_rTypeInfo
.
end
(),
...
...
dbaccess/source/core/api/SingleSelectQueryComposer.cxx
Dosyayı görüntüle @
f51877b1
...
...
@@ -871,7 +871,6 @@ Reference< XNameAccess > SAL_CALL OSingleSelectQueryComposer::getColumns( ) thr
}
const
::
comphelper
::
UStringMixEqual
aCaseCompare
(
bCase
);
const
::
comphelper
::
TStringMixEqualFunctor
aCaseCompareFunctor
(
bCase
);
typedef
::
std
::
set
<
size_t
>
SizeTSet
;
SizeTSet
aUsedSelectColumns
;
::
connectivity
::
parse
::
OParseColumn
::
StringMap
aColumnNames
;
...
...
@@ -947,12 +946,12 @@ Reference< XNameAccess > SAL_CALL OSingleSelectQueryComposer::getColumns( ) thr
if
(
sColumnName
.
isEmpty
()
)
xProp
->
getPropertyValue
(
PROPERTY_NAME
)
>>=
sColumnName
;
aFindName
=
::
std
::
find_if
(
aNames
.
begin
(),
aNames
.
end
(),
::
std
::
bind2nd
(
aCaseCompare
Functor
,
sColumnName
));
aFindName
=
::
std
::
find_if
(
aNames
.
begin
(),
aNames
.
end
(),
::
std
::
bind2nd
(
aCaseCompare
,
sColumnName
));
sal_Int32
j
=
0
;
while
(
aFindName
!=
aNames
.
end
()
)
{
sColumnName
+=
OUString
::
number
(
++
j
);
aFindName
=
::
std
::
find_if
(
aNames
.
begin
(),
aNames
.
end
(),
::
std
::
bind2nd
(
aCaseCompare
Functor
,
sColumnName
));
aFindName
=
::
std
::
find_if
(
aNames
.
begin
(),
aNames
.
end
(),
::
std
::
bind2nd
(
aCaseCompare
,
sColumnName
));
}
pColumn
->
setName
(
sColumnName
);
...
...
dbaccess/source/ui/control/tabletree.cxx
Dosyayı görüntüle @
f51877b1
...
...
@@ -193,7 +193,7 @@ namespace
struct
OViewSetter
:
public
::
std
::
unary_function
<
OTableTreeListBox
::
TNames
::
value_type
,
bool
>
{
const
Sequence
<
OUString
>
m_aViews
;
::
comphelper
::
TStringMixEqualFunctor
m_aEqualFunctor
;
::
comphelper
::
UStringMixEqual
m_aEqualFunctor
;
OViewSetter
(
const
Sequence
<
OUString
>&
_rViews
,
sal_Bool
_bCase
)
:
m_aViews
(
_rViews
),
m_aEqualFunctor
(
_bCase
){}
OTableTreeListBox
::
TNames
::
value_type
operator
()
(
const
OUString
&
lhs
)
...
...
dbaccess/source/ui/dlg/adtabdlg.cxx
Dosyayı görüntüle @
f51877b1
...
...
@@ -189,7 +189,7 @@ void TableListFacade::updateTableObjectList( bool _bAllowViews )
const
OUString
*
pViewBegin
=
sViews
.
getConstArray
();
const
OUString
*
pViewEnd
=
pViewBegin
+
sViews
.
getLength
();
::
comphelper
::
TStringMixEqualFunctor
aEqualFunctor
;
::
comphelper
::
UStringMixEqual
aEqualFunctor
;
for
(;
pViewBegin
!=
pViewEnd
;
++
pViewBegin
)
aTables
.
erase
(
::
std
::
remove_if
(
aTables
.
begin
(),
aTables
.
end
(),
::
std
::
bind2nd
(
aEqualFunctor
,
*
pViewBegin
)),
aTables
.
end
());
OUString
*
pTables
=
aTables
.
empty
()
?
0
:
&
aTables
[
0
];
...
...
dbaccess/source/ui/inc/WColumnSelect.hxx
Dosyayı görüntüle @
f51877b1
...
...
@@ -57,7 +57,7 @@ namespace dbaui
const
OUString
&
_sColumnName
,
const
OUString
&
_sExtraChars
,
sal_Int32
_nMaxNameLen
,
const
::
comphelper
::
TStringMixEqualFunctor
&
_aCase
);
const
::
comphelper
::
UStringMixEqual
&
_aCase
);
void
moveColumn
(
ListBox
*
_pRight
,
ListBox
*
_pLeft
,
...
...
@@ -65,14 +65,14 @@ namespace dbaui
const
OUString
&
_sColumnName
,
const
OUString
&
_sExtraChars
,
sal_Int32
_nMaxNameLen
,
const
::
comphelper
::
TStringMixEqualFunctor
&
_aCase
);
const
::
comphelper
::
UStringMixEqual
&
_aCase
);
void
enableButtons
();
sal_uInt16
adjustColumnPosition
(
ListBox
*
_pLeft
,
const
OUString
&
_sColumnName
,
ODatabaseExport
::
TColumnVector
::
size_type
nCurrentPos
,
const
::
comphelper
::
TStringMixEqualFunctor
&
_aCase
);
const
::
comphelper
::
UStringMixEqual
&
_aCase
);
public
:
virtual
void
Reset
(
);
...
...
dbaccess/source/ui/inc/WCopyTable.hxx
Dosyayı görüntüle @
f51877b1
...
...
@@ -73,11 +73,11 @@ namespace dbaui
class
TMultiListBoxEntryFindFunctor
:
public
TColumnFindFunctor
{
::
comphelper
::
TStringMixEqualFunctor
m_aCase
;
::
comphelper
::
UStringMixEqual
m_aCase
;
::
std
::
vector
<
OUString
>*
m_pVector
;
public
:
TMultiListBoxEntryFindFunctor
(
::
std
::
vector
<
OUString
>*
_pVector
,
const
::
comphelper
::
TStringMixEqualFunctor
&
_aCase
)
const
::
comphelper
::
UStringMixEqual
&
_aCase
)
:
m_aCase
(
_aCase
)
,
m_pVector
(
_pVector
)
{
...
...
dbaccess/source/ui/misc/UITools.cxx
Dosyayı görüntüle @
f51877b1
...
...
@@ -407,7 +407,7 @@ TOTypeInfoSP getTypeInfoFromType(const OTypeInfoMap& _rTypeInfo,
}
else
{
::
comphelper
::
TStringMixEqualFunctor
aCase
(
sal_False
);
::
comphelper
::
UStringMixEqual
aCase
(
sal_False
);
// search for typeinfo where the typename is equal _sTypeName
OTypeInfoMap
::
const_iterator
typeInfoLoop
=
_rTypeInfo
.
begin
();
OTypeInfoMap
::
const_iterator
typeInfoEnd
=
_rTypeInfo
.
end
();
...
...
dbaccess/source/ui/misc/WColumnSelect.cxx
Dosyayı görüntüle @
f51877b1
...
...
@@ -198,7 +198,7 @@ IMPL_LINK( OWizColumnSelect, ButtonClickHdl, Button *, pButton )
OUString
sExtraChars
=
xMetaData
->
getExtraNameCharacters
();
sal_Int32
nMaxNameLen
=
m_pParent
->
getMaxColumnNameLength
();
::
comphelper
::
TStringMixEqualFunctor
aCase
(
xMetaData
->
supportsMixedCaseQuotedIdentifiers
());
::
comphelper
::
UStringMixEqual
aCase
(
xMetaData
->
supportsMixedCaseQuotedIdentifiers
());
::
std
::
vector
<
OUString
>
aRightColumns
;
fillColumns
(
pRight
,
aRightColumns
);
...
...
@@ -246,7 +246,7 @@ IMPL_LINK( OWizColumnSelect, ListDoubleClickHdl, MultiListBox *, pListBox )
OUString
sExtraChars
=
xMetaData
->
getExtraNameCharacters
();
sal_Int32
nMaxNameLen
=
m_pParent
->
getMaxColumnNameLength
();
::
comphelper
::
TStringMixEqualFunctor
aCase
(
xMetaData
->
supportsMixedCaseQuotedIdentifiers
());
::
comphelper
::
UStringMixEqual
aCase
(
xMetaData
->
supportsMixedCaseQuotedIdentifiers
());
::
std
::
vector
<
OUString
>
aRightColumns
;
fillColumns
(
pRight
,
aRightColumns
);
...
...
@@ -280,7 +280,7 @@ void OWizColumnSelect::createNewColumn( ListBox* _pListbox,
const
OUString
&
_sColumnName
,
const
OUString
&
_sExtraChars
,
sal_Int32
_nMaxNameLen
,
const
::
comphelper
::
TStringMixEqualFunctor
&
_aCase
)
const
::
comphelper
::
UStringMixEqual
&
_aCase
)
{
OUString
sConvertedName
=
m_pParent
->
convertColumnName
(
TMultiListBoxEntryFindFunctor
(
&
_rRightColumns
,
_aCase
),
_sColumnName
,
...
...
@@ -306,7 +306,7 @@ void OWizColumnSelect::moveColumn( ListBox* _pRight,
const
OUString
&
_sColumnName
,
const
OUString
&
_sExtraChars
,
sal_Int32
_nMaxNameLen
,
const
::
comphelper
::
TStringMixEqualFunctor
&
_aCase
)
const
::
comphelper
::
UStringMixEqual
&
_aCase
)
{
if
(
_pRight
==
&
m_lbNewColumnNames
)
{
...
...
@@ -350,7 +350,7 @@ void OWizColumnSelect::moveColumn( ListBox* _pRight,
sal_uInt16
OWizColumnSelect
::
adjustColumnPosition
(
ListBox
*
_pLeft
,
const
OUString
&
_sColumnName
,
ODatabaseExport
::
TColumnVector
::
size_type
nCurrentPos
,
const
::
comphelper
::
TStringMixEqualFunctor
&
_aCase
)
const
::
comphelper
::
UStringMixEqual
&
_aCase
)
{
sal_uInt16
nAdjustedPos
=
0
;
...
...
include/comphelper/stl_types.hxx
Dosyayı görüntüle @
f51877b1
...
...
@@ -58,30 +58,15 @@ public:
};
//------------------------------------------------------------------------
class
UStringMixEqual
class
UStringMixEqual
:
public
std
::
binary_function
<
OUString
,
OUString
,
bool
>
{
sal_Bool
m_bCaseSensitive
;
public
:
UStringMixEqual
(
sal_Bool
bCaseSensitive
=
sal_True
)
:
m_bCaseSensitive
(
bCaseSensitive
){}
sal_Bool
operator
()
(
const
OUString
&
lhs
,
const
OUString
&
rhs
)
const
{
return
m_bCaseSensitive
?
lhs
.
equals
(
rhs
)
:
lhs
.
equalsIgnoreAsciiCase
(
rhs
);
}
sal_Bool
isCaseSensitive
()
const
{
return
m_bCaseSensitive
;}
};
//------------------------------------------------------------------------
class
TStringMixEqualFunctor
:
public
::
std
::
binary_function
<
OUString
,
OUString
,
bool
>
{
sal_Bool
m_bCaseSensitive
;
public
:
TStringMixEqualFunctor
(
sal_Bool
bCaseSensitive
=
sal_True
)
:
m_bCaseSensitive
(
bCaseSensitive
)
{}
bool
operator
()
(
const
OUString
&
lhs
,
const
OUString
&
rhs
)
const
{
return
!!
(
m_bCaseSensitive
?
lhs
.
equals
(
rhs
)
:
lhs
.
equalsIgnoreAsciiCase
(
rhs
)
);
return
m_bCaseSensitive
?
lhs
.
equals
(
rhs
)
:
lhs
.
equalsIgnoreAsciiCase
(
rhs
);
}
sal_Bool
isCaseSensitive
()
const
{
return
m_bCaseSensitive
;}
};
...
...
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