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
83b42cdc
Kaydet (Commit)
83b42cdc
authored
Nis 03, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert (ugly) WriteUniOrByteString to rtl::OUString
üst
5daa649c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
stream.hxx
tools/inc/tools/stream.hxx
+1
-1
stream.cxx
tools/source/stream/stream.cxx
+4
-4
No files found.
tools/inc/tools/stream.hxx
Dosyayı görüntüle @
83b42cdc
...
...
@@ -410,7 +410,7 @@ public:
rtl
::
OUString
ReadUniOrByteString
(
rtl_TextEncoding
eSrcCharSet
);
/// Write a 32bit length prefixed sequence of utf-16 if eSrcCharSet==RTL_TEXTENCODING_UNICODE,
/// otherwise convert to eSrcCharSet and write a 16bit length prefixed sequence of bytes
SvStream
&
WriteUniOrByteString
(
const
Uni
String
&
rStr
,
rtl_TextEncoding
eDestCharSet
);
SvStream
&
WriteUniOrByteString
(
const
rtl
::
OU
String
&
rStr
,
rtl_TextEncoding
eDestCharSet
);
/// Read a line of Unicode if eSrcCharSet==RTL_TEXTENCODING_UNICODE,
/// otherwise read a line of Bytecode and convert from eSrcCharSet
sal_Bool
ReadUniOrByteStringLine
(
String
&
rStr
,
rtl_TextEncoding
eSrcCharSet
);
...
...
tools/source/stream/stream.cxx
Dosyayı görüntüle @
83b42cdc
...
...
@@ -1414,18 +1414,18 @@ rtl::OUString SvStream::ReadUniOrByteString( rtl_TextEncoding eSrcCharSet )
// -----------------------------------------------------------------------
SvStream
&
SvStream
::
WriteUniOrByteString
(
const
Uni
String
&
rStr
,
rtl_TextEncoding
eDestCharSet
)
SvStream
&
SvStream
::
WriteUniOrByteString
(
const
rtl
::
OU
String
&
rStr
,
rtl_TextEncoding
eDestCharSet
)
{
// write UTF-16 string directly into stream ?
if
(
eDestCharSet
==
RTL_TEXTENCODING_UNICODE
)
{
sal_
uInt32
nLen
=
rStr
.
Len
();
sal_
Int32
nLen
=
rStr
.
getLength
();
operator
<<
(
nLen
);
if
(
nLen
)
{
if
(
bSwap
)
{
const
sal_Unicode
*
pStr
=
rStr
.
GetBuffe
r
();
const
sal_Unicode
*
pStr
=
rStr
.
getSt
r
();
const
sal_Unicode
*
pEnd
=
pStr
+
nLen
;
for
(;
pStr
<
pEnd
;
pStr
++
)
...
...
@@ -1436,7 +1436,7 @@ SvStream& SvStream::WriteUniOrByteString( const UniString& rStr, rtl_TextEncodin
}
}
else
Write
(
rStr
.
GetBuffe
r
(),
nLen
<<
1
);
Write
(
rStr
.
getSt
r
(),
nLen
<<
1
);
}
return
*
this
;
...
...
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