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
c471e148
Kaydet (Commit)
c471e148
authored
Kas 19, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
String function clean-up
Change-Id: I0bb807748f67af3ee1210c6df649bc8ae506e090
üst
cc8f8ae5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
cmdlineargs.cxx
desktop/source/app/cmdlineargs.cxx
+11
-11
No files found.
desktop/source/app/cmdlineargs.cxx
Dosyayı görüntüle @
c471e148
...
@@ -165,7 +165,7 @@ void CommandLineArgs::ParseCommandLine_Impl( Supplier& supplier )
...
@@ -165,7 +165,7 @@ void CommandLineArgs::ParseCommandLine_Impl( Supplier& supplier )
OUString
oArg
;
OUString
oArg
;
if
(
!
InterpretCommandLineParameter
(
aArg
,
oArg
))
if
(
!
InterpretCommandLineParameter
(
aArg
,
oArg
))
{
{
if
(
aArg
.
toChar
()
==
'-'
)
if
(
aArg
.
startsWith
(
"-"
)
)
{
{
// handle this argument as an option
// handle this argument as an option
if
(
aArg
.
equalsIgnoreAsciiCase
(
"-n"
))
if
(
aArg
.
equalsIgnoreAsciiCase
(
"-n"
))
...
@@ -296,7 +296,7 @@ void CommandLineArgs::ParseCommandLine_Impl( Supplier& supplier )
...
@@ -296,7 +296,7 @@ void CommandLineArgs::ParseCommandLine_Impl( Supplier& supplier )
!
oArg
.
equalsIgnoreAsciiCase
(
"valgrind"
)
&&
!
oArg
.
equalsIgnoreAsciiCase
(
"valgrind"
)
&&
// for X Session Management, handled in
// for X Session Management, handled in
// vcl/unx/generic/app/sm.cxx:
// vcl/unx/generic/app/sm.cxx:
!
oArg
.
matc
h
(
"session="
)
&&
!
oArg
.
startsWit
h
(
"session="
)
&&
#endif
#endif
//ignore additional legacy options that don't do anything anymore
//ignore additional legacy options that don't do anything anymore
!
oArg
.
equalsIgnoreAsciiCase
(
"nocrashreport"
)
&&
!
oArg
.
equalsIgnoreAsciiCase
(
"nocrashreport"
)
&&
...
@@ -388,11 +388,11 @@ void CommandLineArgs::ParseCommandLine_Impl( Supplier& supplier )
...
@@ -388,11 +388,11 @@ void CommandLineArgs::ParseCommandLine_Impl( Supplier& supplier )
bool
CommandLineArgs
::
InterpretCommandLineParameter
(
const
OUString
&
aArg
,
OUString
&
oArg
)
bool
CommandLineArgs
::
InterpretCommandLineParameter
(
const
OUString
&
aArg
,
OUString
&
oArg
)
{
{
bool
bDeprecated
=
false
;
bool
bDeprecated
=
false
;
if
(
aArg
.
matchIgnoreAsciiCase
(
"--"
))
if
(
aArg
.
startsWith
(
"--"
))
{
{
oArg
=
OUString
(
aArg
.
getStr
()
+
2
,
aArg
.
getLength
()
-
2
);
oArg
=
OUString
(
aArg
.
getStr
()
+
2
,
aArg
.
getLength
()
-
2
);
}
}
else
if
(
aArg
.
toChar
()
==
'-'
)
else
if
(
aArg
.
startsWith
(
"-"
)
)
{
{
if
(
aArg
.
getLength
()
>
2
)
// -h, -o, -n, -? are still valid
if
(
aArg
.
getLength
()
>
2
)
// -h, -o, -n, -? are still valid
bDeprecated
=
true
;
bDeprecated
=
true
;
...
@@ -491,7 +491,7 @@ bool CommandLineArgs::InterpretCommandLineParameter( const OUString& aArg, OUStr
...
@@ -491,7 +491,7 @@ bool CommandLineArgs::InterpretCommandLineParameter( const OUString& aArg, OUStr
{
{
m_version
=
true
;
m_version
=
true
;
}
}
else
if
(
oArg
.
matc
hIgnoreAsciiCase
(
"splash-pipe="
)
)
else
if
(
oArg
.
startsWit
hIgnoreAsciiCase
(
"splash-pipe="
)
)
{
{
m_splashpipe
=
true
;
m_splashpipe
=
true
;
}
}
...
@@ -501,7 +501,7 @@ bool CommandLineArgs::InterpretCommandLineParameter( const OUString& aArg, OUStr
...
@@ -501,7 +501,7 @@ bool CommandLineArgs::InterpretCommandLineParameter( const OUString& aArg, OUStr
the only platform dependent parameter. Should more appear
the only platform dependent parameter. Should more appear
we should find a better solution
we should find a better solution
*/
*/
else
if
(
aArg
.
matc
h
(
"-psn"
)
)
else
if
(
aArg
.
startsWit
h
(
"-psn"
)
)
{
{
return
true
;
return
true
;
}
}
...
@@ -522,23 +522,23 @@ bool CommandLineArgs::InterpretCommandLineParameter( const OUString& aArg, OUStr
...
@@ -522,23 +522,23 @@ bool CommandLineArgs::InterpretCommandLineParameter( const OUString& aArg, OUStr
return
true
;
return
true
;
}
}
#endif
#endif
else
if
(
oArg
.
matc
hIgnoreAsciiCase
(
"infilter="
))
else
if
(
oArg
.
startsWit
hIgnoreAsciiCase
(
"infilter="
))
{
{
m_infilter
.
push_back
(
oArg
.
copy
(
RTL_CONSTASCII_LENGTH
(
"infilter="
)));
m_infilter
.
push_back
(
oArg
.
copy
(
RTL_CONSTASCII_LENGTH
(
"infilter="
)));
}
}
else
if
(
oArg
.
matc
hIgnoreAsciiCase
(
"accept="
))
else
if
(
oArg
.
startsWit
hIgnoreAsciiCase
(
"accept="
))
{
{
m_accept
.
push_back
(
oArg
.
copy
(
RTL_CONSTASCII_LENGTH
(
"accept="
)));
m_accept
.
push_back
(
oArg
.
copy
(
RTL_CONSTASCII_LENGTH
(
"accept="
)));
}
}
else
if
(
oArg
.
matc
hIgnoreAsciiCase
(
"unaccept="
))
else
if
(
oArg
.
startsWit
hIgnoreAsciiCase
(
"unaccept="
))
{
{
m_unaccept
.
push_back
(
oArg
.
copy
(
RTL_CONSTASCII_LENGTH
(
"unaccept="
)));
m_unaccept
.
push_back
(
oArg
.
copy
(
RTL_CONSTASCII_LENGTH
(
"unaccept="
)));
}
}
else
if
(
oArg
.
matc
hIgnoreAsciiCase
(
"language="
))
else
if
(
oArg
.
startsWit
hIgnoreAsciiCase
(
"language="
))
{
{
m_language
=
oArg
.
copy
(
RTL_CONSTASCII_LENGTH
(
"language="
));
m_language
=
oArg
.
copy
(
RTL_CONSTASCII_LENGTH
(
"language="
));
}
}
else
if
(
oArg
.
matc
hIgnoreAsciiCase
(
"pidfile="
))
else
if
(
oArg
.
startsWit
hIgnoreAsciiCase
(
"pidfile="
))
{
{
m_pidfile
=
oArg
.
copy
(
RTL_CONSTASCII_LENGTH
(
"pidfile="
));
m_pidfile
=
oArg
.
copy
(
RTL_CONSTASCII_LENGTH
(
"pidfile="
));
}
}
...
...
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