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
72111620
Kaydet (Commit)
72111620
authored
Mar 01, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clean up uses of rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength
Change-Id: Ie37614dac882bfe05f8ce595ae6b20326dce872e
üst
2f527738
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
17 deletions
+6
-17
storagehelper.cxx
comphelper/source/misc/storagehelper.cxx
+2
-5
pq_tools.cxx
connectivity/source/drivers/postgresql/pq_tools.cxx
+2
-4
shapeexport.cxx
xmloff/source/draw/shapeexport.cxx
+2
-8
No files found.
comphelper/source/misc/storagehelper.cxx
Dosyayı görüntüle @
72111620
...
...
@@ -574,12 +574,9 @@ uno::Reference< io::XStream > OStorageHelper::GetStreamAtPackageURL(
const
OUString
&
rURL
,
sal_uInt32
const
nOpenMode
,
LifecycleProxy
&
rNastiness
)
{
static
char
const
s_PkgScheme
[]
=
"vnd.sun.star.Package:"
;
if
(
0
==
rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength
(
rURL
.
getStr
(),
rURL
.
getLength
(),
s_PkgScheme
,
SAL_N_ELEMENTS
(
s_PkgScheme
)
-
1
))
OUString
path
;
if
(
rURL
.
startsWithIgnoreAsciiCase
(
"vnd.sun.star.Package:"
,
&
path
))
{
OUString
const
path
(
rURL
.
copy
(
SAL_N_ELEMENTS
(
s_PkgScheme
)
-
1
));
return
GetStreamAtPath
(
xParentStorage
,
path
,
nOpenMode
,
rNastiness
);
}
return
0
;
...
...
connectivity/source/drivers/postgresql/pq_tools.cxx
Dosyayı görüntüle @
72111620
...
...
@@ -321,13 +321,11 @@ OUString extractTableFromInsert( const OUString & sql )
int
i
=
0
;
while
(
i
<
sql
.
getLength
()
&&
isWhitespace
(
sql
[
i
]))
{
i
++
;
}
if
(
0
==
rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength
(
&
sql
.
getStr
()[
i
],
sql
.
getLength
()
-
i
,
"insert"
,
6
)
)
if
(
sql
.
matchIgnoreAsciiCase
(
"insert"
,
i
)
)
{
i
+=
6
;
while
(
i
<
sql
.
getLength
()
&&
isWhitespace
(
sql
[
i
]))
{
i
++
;
}
if
(
0
==
rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength
(
&
sql
.
getStr
()[
i
],
sql
.
getLength
()
-
i
,
"into"
,
4
)
)
if
(
sql
.
matchIgnoreAsciiCase
(
"into"
,
i
)
)
{
i
+=
4
;
while
(
i
<
sql
.
getLength
()
&&
isWhitespace
(
sql
[
i
]))
{
i
++
;
}
...
...
xmloff/source/draw/shapeexport.cxx
Dosyayı görüntüle @
72111620
...
...
@@ -3126,16 +3126,13 @@ static void lcl_CopyStream(
proxy
.
commitStorages
();
}
static
char
const
s_PkgScheme
[]
=
"vnd.sun.star.Package:"
;
static
OUString
lcl_StoreMediaAndGetURL
(
SvXMLExport
&
rExport
,
uno
::
Reference
<
beans
::
XPropertySet
>
const
&
xPropSet
,
OUString
const
&
rURL
)
{
if
(
0
==
rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength
(
rURL
.
getStr
(),
rURL
.
getLength
(),
s_PkgScheme
,
SAL_N_ELEMENTS
(
s_PkgScheme
)
-
1
))
OUString
urlPath
;
if
(
rURL
.
startsWithIgnoreAsciiCase
(
"vnd.sun.star.Package:"
,
&
urlPath
))
{
try
// video is embedded
{
...
...
@@ -3152,9 +3149,6 @@ lcl_StoreMediaAndGetURL(SvXMLExport & rExport,
return
OUString
();
}
OUString
const
urlPath
(
rURL
.
copy
(
SAL_N_ELEMENTS
(
s_PkgScheme
)
-
1
));
lcl_CopyStream
(
xInStream
,
xTarget
,
rURL
);
return
urlPath
;
...
...
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