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
ac37cb32
Kaydet (Commit)
ac37cb32
authored
Ock 15, 2018
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
More loplugin:cstylecast: i18nutil
Change-Id: Ibdfec3e35c6424fdd4d9b15ff4f4d7441a5f7e36
üst
e99d632b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
11 deletions
+11
-11
casefolding.cxx
i18nutil/source/utility/casefolding.cxx
+5
-5
paper.cxx
i18nutil/source/utility/paper.cxx
+1
-1
unicode.cxx
i18nutil/source/utility/unicode.cxx
+3
-3
searchopt.hxx
include/i18nutil/searchopt.hxx
+2
-2
transliteration.hxx
include/i18nutil/transliteration.hxx
+0
-0
No files found.
i18nutil/source/utility/casefolding.cxx
Dosyayı görüntüle @
ac37cb32
...
...
@@ -50,7 +50,7 @@ static bool cased_letter(sal_Unicode ch)
if
(
cmi
<
0
)
return
false
;
int
cmv_idx
=
(
cmi
<<
8
)
+
(
ch
&
0xff
);
return
bool
(
((
MappingType
)
CaseMappingValue
[
cmv_idx
].
type
)
&
MappingType
::
CasedLetterMask
);
return
bool
(
static_cast
<
MappingType
>
(
CaseMappingValue
[
cmv_idx
].
type
)
&
MappingType
::
CasedLetterMask
);
}
// for Lithuanian, condition to make explicit dot above when lowercasing capital I's and J's
...
...
@@ -95,16 +95,16 @@ Mapping& casefolding::getValue(const sal_Unicode* str, sal_Int32 pos, sal_Int32
if
(
address
>=
0
)
{
address
=
(
address
<<
8
)
+
(
str
[
pos
]
&
0xFF
);
if
(
(
MappingType
)
CaseMappingValue
[
address
].
type
&
nMappingType
)
{
MappingType
type
=
(
MappingType
)
CaseMappingValue
[
address
].
type
;
if
(
static_cast
<
MappingType
>
(
CaseMappingValue
[
address
].
type
)
&
nMappingType
)
{
MappingType
type
=
static_cast
<
MappingType
>
(
CaseMappingValue
[
address
].
type
)
;
if
(
type
&
MappingType
::
NotValue
)
{
if
(
CaseMappingValue
[
address
].
value
==
0
)
return
getConditionalValue
(
str
,
pos
,
len
,
aLocale
,
nMappingType
);
else
{
for
(
int
map
=
CaseMappingValue
[
address
].
value
;
map
<
CaseMappingValue
[
address
].
value
+
MaxCaseMappingExtras
;
map
++
)
{
if
(
(
MappingType
)
CaseMappingExtra
[
map
].
type
&
nMappingType
)
{
if
(
(
MappingType
)
CaseMappingExtra
[
map
].
type
&
MappingType
::
NotValue
)
if
(
static_cast
<
MappingType
>
(
CaseMappingExtra
[
map
].
type
)
&
nMappingType
)
{
if
(
static_cast
<
MappingType
>
(
CaseMappingExtra
[
map
].
type
)
&
MappingType
::
NotValue
)
return
getConditionalValue
(
str
,
pos
,
len
,
aLocale
,
nMappingType
);
else
return
CaseMappingExtra
[
map
];
...
...
i18nutil/source/utility/paper.cxx
Dosyayı görüntüle @
ac37cb32
...
...
@@ -173,7 +173,7 @@ bool PaperInfo::doSloppyFit()
{
m_nPaperWidth
=
aDinTab
[
i
].
m_nWidth
;
m_nPaperHeight
=
aDinTab
[
i
].
m_nHeight
;
m_eType
=
(
Paper
)
i
;
m_eType
=
static_cast
<
Paper
>
(
i
)
;
return
true
;
}
}
...
...
i18nutil/source/utility/unicode.cxx
Dosyayı görüntüle @
ac37cb32
...
...
@@ -41,7 +41,7 @@ T getScriptType( const sal_Unicode ch, const L* typeList, T unknownType ) {
sal_Int16
i
=
0
;
css
::
i18n
::
UnicodeScript
type
=
typeList
[
0
].
to
;
while
(
type
<
UnicodeScript_kScriptCount
&&
ch
>
UnicodeScriptType
[
(
int
)
type
][
UnicodeScriptTypeTo
])
{
while
(
type
<
UnicodeScript_kScriptCount
&&
ch
>
UnicodeScriptType
[
static_cast
<
int
>
(
type
)
][
UnicodeScriptTypeTo
])
{
type
=
typeList
[
++
i
].
to
;
}
...
...
@@ -57,12 +57,12 @@ unicode::getUnicodeScriptType( const sal_Unicode ch, const ScriptTypeList* typeL
sal_Unicode
unicode
::
getUnicodeScriptStart
(
UnicodeScript
type
)
{
return
UnicodeScriptType
[
(
int
)
type
][
UnicodeScriptTypeFrom
];
return
UnicodeScriptType
[
static_cast
<
int
>
(
type
)
][
UnicodeScriptTypeFrom
];
}
sal_Unicode
unicode
::
getUnicodeScriptEnd
(
UnicodeScript
type
)
{
return
UnicodeScriptType
[
(
int
)
type
][
UnicodeScriptTypeTo
];
return
UnicodeScriptType
[
static_cast
<
int
>
(
type
)
][
UnicodeScriptTypeTo
];
}
sal_Int16
...
...
include/i18nutil/searchopt.hxx
Dosyayı görüntüle @
ac37cb32
...
...
@@ -54,7 +54,7 @@ struct SAL_WARN_UNUSED SearchOptions {
changedChars
=
other
.
changedChars
;
deletedChars
=
other
.
deletedChars
;
insertedChars
=
other
.
insertedChars
;
transliterateFlags
=
(
TransliterationFlags
)
other
.
transliterateFlags
;
transliterateFlags
=
static_cast
<
TransliterationFlags
>
(
other
.
transliterateFlags
)
;
return
*
this
;
}
...
...
@@ -113,7 +113,7 @@ struct SAL_WARN_UNUSED SearchOptions2 : public SearchOptions {
searchString
,
replaceString
,
Locale
,
changedChars
,
deletedChars
,
insertedChars
,
(
sal_Int32
)
transliterateFlags
,
static_cast
<
sal_Int32
>
(
transliterateFlags
)
,
AlgorithmType2
,
WildcardEscapeCharacter
);
}
...
...
include/i18nutil/transliteration.hxx
Dosyayı görüntüle @
ac37cb32
This diff is collapsed.
Click to expand it.
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