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
82236dd3
Kaydet (Commit)
82236dd3
authored
Agu 21, 2013
tarafından
László Németh
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#68373 wildcard char. matches only real suffix in autocorr.
Change-Id: Ibe06bb5c62ac0d8fae17c8a9ffcc4b1bc2768bcc
üst
68dd91f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
svxacorr.cxx
editeng/source/misc/svxacorr.cxx
+8
-1
No files found.
editeng/source/misc/svxacorr.cxx
Dosyayı görüntüle @
82236dd3
...
...
@@ -2730,11 +2730,18 @@ const SvxAutocorrWord* SvxAutocorrWordList::WordMatches(const SvxAutocorrWord *p
if
(
rChk
.
GetChar
(
rChk
.
Len
()
-
1
)
==
C_ASTERISK
)
{
String
sTmp
(
rChk
.
Copy
(
0
,
rChk
.
Len
()
-
1
)
);
// Get the last word delimiter position
xub_StrLen
nSttWdPos
=
nEndPos
;
bool
bWasWordDelim
=
false
;
bool
not_suffix
;
while
(
nSttWdPos
&&
!
(
bWasWordDelim
=
IsWordDelim
(
rTxt
.
GetChar
(
--
nSttWdPos
))))
;
// search the first occurance with a left word delimitation
xub_StrLen
nFndPos
=
-
1
;
do
{
nFndPos
=
rTxt
.
Search
(
sTmp
,
nFndPos
+
1
);
}
while
(
nFndPos
!=
STRING_NOTFOUND
&&
!
(
!
nFndPos
||
IsWordDelim
(
rTxt
.
GetChar
(
nFndPos
-
1
))));
not_suffix
=
(
bWasWordDelim
&&
(
nSttWdPos
>=
nFndPos
+
sTmp
.
Len
()));
}
while
(
nFndPos
!=
STRING_NOTFOUND
&&
(
!
(
!
nFndPos
||
IsWordDelim
(
rTxt
.
GetChar
(
nFndPos
-
1
)))
||
not_suffix
));
if
(
nFndPos
!=
STRING_NOTFOUND
)
{
// store matching pattern and its replacement as a new list item, eg. "i18ns" -> "internationalizations"
...
...
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