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
ce583af6
Kaydet (Commit)
ce583af6
authored
May 28, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid undefined left shift of negative value
Change-Id: If4e7f6fca3f6afbbeaa79e00706be08d674e2aeb
üst
6e7986a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
casefolding.cxx
i18nutil/source/utility/casefolding.cxx
+8
-5
No files found.
i18nutil/source/utility/casefolding.cxx
Dosyayı görüntüle @
ce583af6
...
...
@@ -79,12 +79,14 @@ Mapping& casefolding::getConditionalValue(const sal_Unicode* str, sal_Int32 pos,
Mapping
&
casefolding
::
getValue
(
const
sal_Unicode
*
str
,
sal_Int32
pos
,
sal_Int32
len
,
Locale
&
aLocale
,
sal_uInt8
nMappingType
)
throw
(
RuntimeException
)
{
static
Mapping
dummy
=
{
0
,
1
,
{
0
,
0
,
0
}
};
sal_Int16
address
=
CaseMappingIndex
[
str
[
pos
]
>>
8
]
<<
8
;
static
Mapping
dummy
=
{
0
,
1
,
{
0
,
0
,
0
}
};
sal_Int16
address
=
CaseMappingIndex
[
str
[
pos
]
>>
8
]
;
dummy
.
map
[
0
]
=
str
[
pos
];
dummy
.
map
[
0
]
=
str
[
pos
];
if
(
address
>=
0
&&
(
CaseMappingValue
[
address
+=
(
str
[
pos
]
&
0xFF
)].
type
&
nMappingType
))
{
if
(
address
>=
0
)
{
address
=
(
address
<<
8
)
+
(
str
[
pos
]
&
0xFF
);
if
(
CaseMappingValue
[
address
].
type
&
nMappingType
)
{
sal_uInt8
type
=
CaseMappingValue
[
address
].
type
;
if
(
type
&
ValueTypeNotValue
)
{
if
(
CaseMappingValue
[
address
].
value
==
0
)
...
...
@@ -105,7 +107,8 @@ Mapping& casefolding::getValue(const sal_Unicode* str, sal_Int32 pos, sal_Int32
}
else
dummy
.
map
[
0
]
=
CaseMappingValue
[
address
].
value
;
}
return
dummy
;
}
return
dummy
;
}
inline
bool
SAL_CALL
...
...
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