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
faf46e49
Kaydet (Commit)
faf46e49
authored
Mar 04, 2013
tarafından
Herbert Dürr
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
WaE: fix narrowing conversion for systems with signed char
üst
267c782f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
export2.cxx
l10ntools/source/export2.cxx
+2
-7
No files found.
l10ntools/source/export2.cxx
Dosyayı görüntüle @
faf46e49
...
@@ -263,13 +263,8 @@ void Export::RemoveUTF8ByteOrderMarker( ByteString &rString ){
...
@@ -263,13 +263,8 @@ void Export::RemoveUTF8ByteOrderMarker( ByteString &rString ){
}
}
bool
Export
::
hasUTF8ByteOrderMarker
(
const
ByteString
&
rString
){
bool
Export
::
hasUTF8ByteOrderMarker
(
const
ByteString
&
rString
){
// Byte order marker signature
// UTF-8 BOM: Byte order marker signature
static
const
unsigned
char
bom
[
3
]
=
{
0xEF
,
0xBB
,
0xBF
};
const
unsigned
char
c1
=
0xEF
;
const
unsigned
char
c2
=
0xBB
;
const
unsigned
char
c3
=
0xBF
;
const
char
bom
[
3
]
=
{
c1
,
c2
,
c3
};
return
rString
.
Len
()
>=
3
&&
return
rString
.
Len
()
>=
3
&&
rString
.
GetChar
(
0
)
==
bom
[
0
]
&&
rString
.
GetChar
(
0
)
==
bom
[
0
]
&&
...
...
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