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
8e2abdc5
Kaydet (Commit)
8e2abdc5
authored
Tem 19, 2011
tarafından
Troy Rollo
Kaydeden (comit)
Caolán McNamara
Tem 19, 2011
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Preserve RTF \'00 sequences (NULL) in strings
üst
21cd1cd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
parrtf.cxx
svtools/source/svrtf/parrtf.cxx
+21
-1
No files found.
svtools/source/svrtf/parrtf.cxx
Dosyayı görüntüle @
8e2abdc5
...
@@ -341,7 +341,27 @@ void SvRTFParser::ScanText( const sal_Unicode cBreak )
...
@@ -341,7 +341,27 @@ void SvRTFParser::ScanText( const sal_Unicode cBreak )
ByteString
aByteString
;
ByteString
aByteString
;
while
(
1
)
while
(
1
)
{
{
aByteString
.
Append
((
char
)
GetHexValue
());
char
c
=
(
char
)
GetHexValue
();
if
(
c
)
{
aByteString
.
Append
(
c
);
}
else
{
/* \'00 is a valid internal character in a
* string in RTF, however ByteString::Append
* does nothing if '\0' is passed in. It is
* otherwise capable of handling strings with
* embedded NULs, so add a '\1' and then
* change it, as ByteString::SetChar does not
* care if the character is '\0'.
*/
int
nLen
=
aByteString
.
Len
();
aByteString
.
Append
(
'\001'
);
aByteString
.
SetChar
(
nLen
,
'\0'
);
}
bool
bBreak
=
false
;
bool
bBreak
=
false
;
sal_Char
nSlash
=
'\\'
;
sal_Char
nSlash
=
'\\'
;
...
...
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