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
6eeee04b
Kaydet (Commit)
6eeee04b
authored
Ock 10, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
WildCard::ImpMatch should return bool
Change-Id: Ib851cbe072bca0d594440cc28164e112d0fe37cb
üst
fd30e4a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
wldcrd.hxx
include/tools/wldcrd.hxx
+1
-1
wldcrd.cxx
tools/source/fsys/wldcrd.cxx
+4
-6
No files found.
include/tools/wldcrd.hxx
Dosyayı görüntüle @
6eeee04b
...
...
@@ -29,7 +29,7 @@ private:
OString
aWildString
;
char
cSepSymbol
;
sal_uInt16
ImpMatch
(
const
char
*
pWild
,
const
char
*
pStr
)
const
;
bool
ImpMatch
(
const
char
*
pWild
,
const
char
*
pStr
)
const
;
public
:
WildCard
()
...
...
tools/source/fsys/wldcrd.cxx
Dosyayı görüntüle @
6eeee04b
...
...
@@ -20,14 +20,12 @@
#include <tools/wldcrd.hxx>
/** Tests, whether a wildcard in pWild will match for pStr.
*
* If they match, return 1, otherwise 0.
*
* '*' in pWild means n chars for n > 0.
* '?' in pWild mean match exactly one character.
*
*/
sal_uInt16
WildCard
::
ImpMatch
(
const
char
*
pWild
,
const
char
*
pStr
)
const
bool
WildCard
::
ImpMatch
(
const
char
*
pWild
,
const
char
*
pStr
)
const
{
int
pos
=
0
;
int
flag
=
0
;
...
...
@@ -38,7 +36,7 @@ sal_uInt16 WildCard::ImpMatch( const char *pWild, const char *pStr ) const
{
case
'?'
:
if
(
*
pStr
==
'\0'
)
return
0
;
return
false
;
break
;
default
:
...
...
@@ -46,7 +44,7 @@ sal_uInt16 WildCard::ImpMatch( const char *pWild, const char *pStr ) const
pWild
++
;
if
(
*
pWild
!=
*
pStr
)
if
(
!
pos
)
return
0
;
return
false
;
else
pWild
+=
pos
;
else
...
...
@@ -56,7 +54,7 @@ sal_uInt16 WildCard::ImpMatch( const char *pWild, const char *pStr ) const
while
(
*
pWild
==
'*'
)
pWild
++
;
if
(
*
pWild
==
'\0'
)
return
1
;
return
true
;
flag
=
1
;
pos
=
0
;
if
(
*
pStr
==
'\0'
)
...
...
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