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
79b2059f
Kaydet (Commit)
79b2059f
authored
Nis 08, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert CapType to scoped enum
Change-Id: I88fa3672a1f933ae818368c9bc400c6a845babb6
üst
704edbf7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
25 deletions
+25
-25
misc.hxx
include/linguistic/misc.hxx
+6
-6
hyphenimp.cxx
lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
+3
-3
nthesimp.cxx
lingucomponent/source/thesaurus/libnth/nthesimp.cxx
+5
-5
misc.cxx
linguistic/source/misc.cxx
+5
-5
spelldsp.cxx
linguistic/source/spelldsp.cxx
+6
-6
No files found.
include/linguistic/misc.hxx
Dosyayı görüntüle @
79b2059f
...
...
@@ -69,13 +69,13 @@ enum class DictionaryError
};
// values asigned to capitalization types
enum
CapType
enum
class
CapType
{
CAPTYPE_
UNKNOWN
,
CAPTYPE_
NOCAP
,
CAPTYPE_
INITCAP
,
CAPTYPE_
ALLCAP
,
CAPTYPE_
MIXED
UNKNOWN
,
NOCAP
,
INITCAP
,
ALLCAP
,
MIXED
};
LNG_DLLPUBLIC
::
osl
::
Mutex
&
GetLinguMutex
();
...
...
lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
Dosyayı görüntüle @
79b2059f
...
...
@@ -319,7 +319,7 @@ Reference< XHyphenatedWord > SAL_CALL Hyphenator::hyphenate( const OUString& aWo
if
(
eEnc
==
RTL_TEXTENCODING_DONTKNOW
)
return
NULL
;
sal_uInt16
ct
=
capitalType
(
aWord
,
pCC
);
CapType
ct
=
capitalType
(
aWord
,
pCC
);
// first convert any smart quotes or apostrophes to normal ones
OUStringBuffer
rBuf
(
aWord
);
...
...
@@ -444,12 +444,12 @@ Reference< XHyphenatedWord > SAL_CALL Hyphenator::hyphenate( const OUString& aWo
OUString
repHyph
;
switch
(
ct
)
{
case
C
APTYPE_
ALLCAP
:
case
C
apType
:
:
ALLCAP
:
{
repHyph
=
makeUpperCase
(
repHyphlow
,
pCC
);
break
;
}
case
C
APTYPE_
INITCAP
:
case
C
apType
:
:
INITCAP
:
{
if
(
nHyphenationPosAlt
==
-
1
)
repHyph
=
makeInitCap
(
repHyphlow
,
pCC
);
...
...
lingucomponent/source/thesaurus/libnth/nthesimp.cxx
Dosyayı görüntüle @
79b2059f
...
...
@@ -285,7 +285,7 @@ Sequence < Reference < ::com::sun::star::linguistic2::XMeaning > > SAL_CALL Thes
OUString
rTerm
(
qTerm
);
OUString
pTerm
(
qTerm
);
sal_uInt16
ct
=
CAPTYPE_
UNKNOWN
;
CapType
ct
=
CapType
::
UNKNOWN
;
sal_Int32
stem
=
0
;
sal_Int32
stem2
=
0
;
...
...
@@ -424,16 +424,16 @@ Sequence < Reference < ::com::sun::star::linguistic2::XMeaning > > SAL_CALL Thes
}
}
sal_uInt16
ct1
=
capitalType
(
sTerm
,
pCC
);
if
(
C
APTYPE_
MIXED
==
ct1
)
CapType
ct1
=
capitalType
(
sTerm
,
pCC
);
if
(
C
apType
::
MIXED
==
ct1
)
ct
=
ct1
;
OUString
cTerm
;
switch
(
ct
)
{
case
C
APTYPE_
ALLCAP
:
case
C
apType
:
:
ALLCAP
:
cTerm
=
makeUpperCase
(
sTerm
,
pCC
);
break
;
case
C
APTYPE_
INITCAP
:
case
C
apType
:
:
INITCAP
:
cTerm
=
makeInitCap
(
sTerm
,
pCC
);
break
;
default
:
...
...
linguistic/source/misc.cxx
Dosyayı görüntüle @
79b2059f
...
...
@@ -622,16 +622,16 @@ CapType SAL_CALL capitalType(const OUString& aTerm, CharClass * pCC)
}
if
(
nc
==
0
)
return
C
APTYPE_
NOCAP
;
return
C
apType
::
NOCAP
;
if
(
nc
==
tlen
)
return
C
APTYPE_
ALLCAP
;
return
C
apType
::
ALLCAP
;
if
((
nc
==
1
)
&&
(
pCC
->
getCharacterType
(
aStr
,
0
)
&
::
com
::
sun
::
star
::
i18n
::
KCharacterType
::
UPPER
))
return
C
APTYPE_
INITCAP
;
return
C
apType
::
INITCAP
;
return
C
APTYPE_
MIXED
;
return
C
apType
::
MIXED
;
}
return
C
APTYPE_
UNKNOWN
;
return
C
apType
::
UNKNOWN
;
}
OUString
ToLower
(
const
OUString
&
rText
,
sal_Int16
nLanguage
)
...
...
linguistic/source/spelldsp.cxx
Dosyayı görüntüle @
79b2059f
...
...
@@ -428,8 +428,8 @@ bool SpellCheckerDispatcher::isValid_Impl(
bRes
=
!
xTmp
->
isNegative
();
}
else
{
setCharClass
(
LanguageTag
(
nLanguage
));
sal_uInt16
ct
=
capitalType
(
aChkWord
,
pCharClass
);
if
(
ct
==
C
APTYPE_INITCAP
||
ct
==
CAPTYPE_
ALLCAP
)
{
CapType
ct
=
capitalType
(
aChkWord
,
pCharClass
);
if
(
ct
==
C
apType
::
INITCAP
||
ct
==
CapType
::
ALLCAP
)
{
Reference
<
XDictionaryEntry
>
xTmp2
(
lcl_GetRulingDictionaryEntry
(
makeLowerCase
(
aChkWord
,
pCharClass
),
nLanguage
)
);
if
(
xTmp2
.
is
())
{
bRes
=
!
xTmp2
->
isNegative
();
...
...
@@ -672,8 +672,8 @@ Reference< XSpellAlternatives > SpellCheckerDispatcher::spell_Impl(
else
{
setCharClass
(
LanguageTag
(
nLanguage
));
sal_uInt16
ct
=
capitalType
(
aChkWord
,
pCharClass
);
if
(
ct
==
C
APTYPE_INITCAP
||
ct
==
CAPTYPE_
ALLCAP
)
CapType
ct
=
capitalType
(
aChkWord
,
pCharClass
);
if
(
ct
==
C
apType
::
INITCAP
||
ct
==
CapType
::
ALLCAP
)
{
Reference
<
XDictionaryEntry
>
xTmp2
(
lcl_GetRulingDictionaryEntry
(
makeLowerCase
(
aChkWord
,
pCharClass
),
nLanguage
)
);
if
(
xTmp2
.
is
())
...
...
@@ -691,10 +691,10 @@ Reference< XSpellAlternatives > SpellCheckerDispatcher::spell_Impl(
{
switch
(
ct
)
{
case
C
APTYPE_
INITCAP
:
case
C
apType
:
:
INITCAP
:
aProposalList
.
Prepend
(
pCharClass
->
titlecase
(
aAddRplcTxt
)
);
break
;
case
C
APTYPE_
ALLCAP
:
case
C
apType
:
:
ALLCAP
:
aProposalList
.
Prepend
(
pCharClass
->
uppercase
(
aAddRplcTxt
)
);
break
;
default
:
...
...
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