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
0a9e5778
Kaydet (Commit)
0a9e5778
authored
Haz 19, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
rename IsAutoCapitalizeWordDelim to NonFieldWordDelim
Change-Id: If8fb8f5e51bba8e631a6fc5db54487b418c19e05
üst
b9d0d608
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
svxacorr.cxx
editeng/source/misc/svxacorr.cxx
+11
-11
No files found.
editeng/source/misc/svxacorr.cxx
Dosyayı görüntüle @
0a9e5778
...
...
@@ -105,18 +105,18 @@ static const sal_Char
OUString
EncryptBlockName_Imp
(
const
OUString
&
rName
);
static
inline
bool
Is
WordDelim
(
const
sal_Unicode
c
)
static
inline
bool
NonField
WordDelim
(
const
sal_Unicode
c
)
{
return
' '
==
c
||
'\t'
==
c
||
0x0a
==
c
||
cNonBreakingSpace
==
c
||
0x2011
==
c
||
0x1
==
c
;
cNonBreakingSpace
==
c
||
0x2011
==
c
;
}
static
inline
bool
Is
AutoCapitalize
WordDelim
(
const
sal_Unicode
c
)
static
inline
bool
IsWordDelim
(
const
sal_Unicode
c
)
{
return
' '
==
c
||
'\t'
==
c
||
0x0a
==
c
||
cNonBreakingSpace
==
c
||
0x2011
==
c
;
return
c
==
0x1
||
NonFieldWordDelim
(
c
);
}
static
inline
bool
IsLowerLetter
(
sal_Int32
nCharType
)
{
return
CharClass
::
isLetterType
(
nCharType
)
&&
...
...
@@ -882,9 +882,9 @@ bool SvxAutoCorrect::FnCapitalStartSentence( SvxAutoCorrDoc& rDoc,
if
(
!
bAtStart
)
// Still no beginning of a paragraph?
{
if
(
IsAutoCapitalize
WordDelim
(
*
pStr
))
if
(
NonField
WordDelim
(
*
pStr
))
{
while
(
!
(
bAtStart
=
(
pStart
==
pStr
--
))
&&
IsAutoCapitalize
WordDelim
(
*
pStr
))
while
(
!
(
bAtStart
=
(
pStart
==
pStr
--
))
&&
NonField
WordDelim
(
*
pStr
))
;
}
// Asian full stop, full width full stop, full width exclamation mark
...
...
@@ -915,7 +915,7 @@ bool SvxAutoCorrect::FnCapitalStartSentence( SvxAutoCorrDoc& rDoc,
do
{
// overwrite all blanks
--
pStr
;
if
(
!
IsAutoCapitalize
WordDelim
(
*
pStr
))
if
(
!
NonField
WordDelim
(
*
pStr
))
break
;
bAtStart
=
(
pStart
==
pStr
);
}
while
(
!
bAtStart
);
...
...
@@ -1011,7 +1011,7 @@ bool SvxAutoCorrect::FnCapitalStartSentence( SvxAutoCorrDoc& rDoc,
else
bAlphaFnd
=
true
;
}
else
if
(
bAlphaFnd
||
IsAutoCapitalize
WordDelim
(
*
pTmpStr
))
else
if
(
bAlphaFnd
||
NonField
WordDelim
(
*
pTmpStr
))
break
;
if
(
pTmpStr
==
pStart
)
...
...
@@ -1027,7 +1027,7 @@ bool SvxAutoCorrect::FnCapitalStartSentence( SvxAutoCorrDoc& rDoc,
bool
bNumericOnly
=
'0'
<=
*
(
pStr
+
1
)
&&
*
(
pStr
+
1
)
<=
'9'
;
// Search for the beginning of the word
while
(
!
IsAutoCapitalize
WordDelim
(
*
pStr
))
while
(
!
NonField
WordDelim
(
*
pStr
))
{
if
(
bNumericOnly
&&
rCC
.
isLetter
(
aText
,
pStr
-
pStart
)
)
bNumericOnly
=
false
;
...
...
@@ -1041,7 +1041,7 @@ bool SvxAutoCorrect::FnCapitalStartSentence( SvxAutoCorrDoc& rDoc,
if
(
bNumericOnly
)
// consists of only numbers, then not
return
false
;
if
(
IsAutoCapitalize
WordDelim
(
*
pStr
))
if
(
NonField
WordDelim
(
*
pStr
))
++
pStr
;
OUString
sWord
;
...
...
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