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
87e407f6
Kaydet (Commit)
87e407f6
authored
Kas 19, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use startsWith rest parameter
Change-Id: I5ec5f68c13ceb93b4e2cea83ec757b9427b8608d
üst
72c8db49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
21 deletions
+14
-21
cmdlineargs.cxx
desktop/source/app/cmdlineargs.cxx
+14
-21
No files found.
desktop/source/app/cmdlineargs.cxx
Dosyayı görüntüle @
87e407f6
...
...
@@ -163,18 +163,11 @@ void CommandLineArgs::ParseCommandLine_Impl( Supplier& supplier )
{
m_bEmpty
=
false
;
OUString
oArg
;
bool
bDeprecated
=
false
;
if
(
aArg
.
startsWith
(
"--"
))
{
oArg
=
OUString
(
aArg
.
getStr
()
+
2
,
aArg
.
getLength
()
-
2
);
}
else
if
(
aArg
.
startsWith
(
"-"
))
{
if
(
aArg
.
getLength
()
>
2
)
// -h, -o, -n, -? are still valid
bDeprecated
=
true
;
oArg
=
OUString
(
aArg
.
getStr
()
+
1
,
aArg
.
getLength
()
-
1
);
}
bool
bDeprecated
=
!
aArg
.
startsWith
(
"--"
,
&
oArg
)
&&
aArg
.
startsWith
(
"-"
,
&
oArg
)
&&
aArg
.
getLength
()
>
2
;
// -h, -?, -n, -o, -p are still valid
OUString
rest
;
if
(
oArg
==
"minimized"
)
{
m_minimized
=
true
;
...
...
@@ -294,25 +287,25 @@ void CommandLineArgs::ParseCommandLine_Impl( Supplier& supplier )
bDeprecated
=
false
;
}
#endif
else
if
(
oArg
.
startsWith
(
"infilter="
))
else
if
(
oArg
.
startsWith
(
"infilter="
,
&
rest
))
{
m_infilter
.
push_back
(
oArg
.
copy
(
RTL_CONSTASCII_LENGTH
(
"infilter="
))
);
m_infilter
.
push_back
(
rest
);
}
else
if
(
oArg
.
startsWith
(
"accept="
))
else
if
(
oArg
.
startsWith
(
"accept="
,
&
rest
))
{
m_accept
.
push_back
(
oArg
.
copy
(
RTL_CONSTASCII_LENGTH
(
"accept="
))
);
m_accept
.
push_back
(
rest
);
}
else
if
(
oArg
.
startsWith
(
"unaccept="
))
else
if
(
oArg
.
startsWith
(
"unaccept="
,
&
rest
))
{
m_unaccept
.
push_back
(
oArg
.
copy
(
RTL_CONSTASCII_LENGTH
(
"unaccept="
))
);
m_unaccept
.
push_back
(
rest
);
}
else
if
(
oArg
.
startsWith
(
"language="
))
else
if
(
oArg
.
startsWith
(
"language="
,
&
rest
))
{
m_language
=
oArg
.
copy
(
RTL_CONSTASCII_LENGTH
(
"language="
))
;
m_language
=
rest
;
}
else
if
(
oArg
.
startsWith
(
"pidfile="
))
else
if
(
oArg
.
startsWith
(
"pidfile="
,
&
rest
))
{
m_pidfile
=
oArg
.
copy
(
RTL_CONSTASCII_LENGTH
(
"pidfile="
))
;
m_pidfile
=
rest
;
}
else
if
(
oArg
==
"writer"
)
{
...
...
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