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
d293fa9e
Kaydet (Commit)
d293fa9e
authored
Ock 10, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use bool
Change-Id: I12f0a6331c435c1eac692e5c20a173ce84830290
üst
f762bed1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
tcvtutf7.cxx
sal/textenc/tcvtutf7.cxx
+2
-2
tcvtutf8.cxx
sal/textenc/tcvtutf8.cxx
+3
-3
No files found.
sal/textenc/tcvtutf7.cxx
Dosyayı görüntüle @
d293fa9e
...
@@ -437,7 +437,7 @@ sal_Size ImplUnicodeToUTF7( SAL_UNUSED_PARAMETER const void*, void* pContext,
...
@@ -437,7 +437,7 @@ sal_Size ImplUnicodeToUTF7( SAL_UNUSED_PARAMETER const void*, void* pContext,
sal_Unicode
c
=
'\0'
;
sal_Unicode
c
=
'\0'
;
int
bEnd
=
sal_False
;
int
bEnd
=
sal_False
;
int
bShifted
;
int
bShifted
;
int
bNeedShift
;
bool
bNeedShift
;
sal_uInt32
nBitBuffer
;
sal_uInt32
nBitBuffer
;
sal_uInt32
nBitBufferTemp
;
sal_uInt32
nBitBufferTemp
;
sal_uInt32
nBufferBits
;
sal_uInt32
nBufferBits
;
...
@@ -496,7 +496,7 @@ sal_Size ImplUnicodeToUTF7( SAL_UNUSED_PARAMETER const void*, void* pContext,
...
@@ -496,7 +496,7 @@ sal_Size ImplUnicodeToUTF7( SAL_UNUSED_PARAMETER const void*, void* pContext,
else
else
{
{
bEnd
=
sal_True
;
bEnd
=
sal_True
;
bNeedShift
=
sal_F
alse
;
bNeedShift
=
f
alse
;
}
}
if
(
bShifted
)
if
(
bShifted
)
...
...
sal/textenc/tcvtutf8.cxx
Dosyayı görüntüle @
d293fa9e
...
@@ -75,7 +75,7 @@ sal_Size ImplConvertUtf8ToUnicode(
...
@@ -75,7 +75,7 @@ sal_Size ImplConvertUtf8ToUnicode(
RTL_TEXTENCODING_UTF8 and RTL_TEXTENCODING_JAVA_UTF8.
RTL_TEXTENCODING_UTF8 and RTL_TEXTENCODING_JAVA_UTF8.
*/
*/
int
bJavaUtf8
=
pData
!=
NULL
;
bool
bJavaUtf8
=
pData
!=
NULL
;
sal_uInt32
nUtf32
=
0
;
sal_uInt32
nUtf32
=
0
;
int
nShift
=
-
1
;
int
nShift
=
-
1
;
bool
bCheckBom
=
true
;
bool
bCheckBom
=
true
;
...
@@ -95,7 +95,7 @@ sal_Size ImplConvertUtf8ToUnicode(
...
@@ -95,7 +95,7 @@ sal_Size ImplConvertUtf8ToUnicode(
while
(
pSrcBufPtr
<
pSrcBufEnd
)
while
(
pSrcBufPtr
<
pSrcBufEnd
)
{
{
bool
bUndefined
=
false
;
bool
bUndefined
=
false
;
int
bConsume
=
true
;
bool
bConsume
=
true
;
sal_uInt32
nChar
=
*
pSrcBufPtr
++
;
sal_uInt32
nChar
=
*
pSrcBufPtr
++
;
if
(
nShift
<
0
)
if
(
nShift
<
0
)
if
(
nChar
<=
0x7F
)
if
(
nChar
<=
0x7F
)
...
@@ -271,7 +271,7 @@ sal_Size ImplConvertUnicodeToUtf8(
...
@@ -271,7 +271,7 @@ sal_Size ImplConvertUnicodeToUtf8(
sal_Size
nSrcChars
,
char
*
pDestBuf
,
sal_Size
nDestBytes
,
sal_uInt32
nFlags
,
sal_Size
nSrcChars
,
char
*
pDestBuf
,
sal_Size
nDestBytes
,
sal_uInt32
nFlags
,
sal_uInt32
*
pInfo
,
sal_Size
*
pSrcCvtChars
)
sal_uInt32
*
pInfo
,
sal_Size
*
pSrcCvtChars
)
{
{
int
bJavaUtf8
=
pData
!=
NULL
;
bool
bJavaUtf8
=
pData
!=
NULL
;
sal_Unicode
nHighSurrogate
=
0xFFFF
;
sal_Unicode
nHighSurrogate
=
0xFFFF
;
sal_uInt32
nInfo
=
0
;
sal_uInt32
nInfo
=
0
;
sal_Unicode
const
*
pSrcBufPtr
=
pSrcBuf
;
sal_Unicode
const
*
pSrcBufPtr
=
pSrcBuf
;
...
...
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