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
03e3a208
Kaydet (Commit)
03e3a208
authored
Ock 24, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ByteString->rtl::OString
üst
39e54d04
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
19 deletions
+14
-19
xbmread.cxx
svtools/source/filter/ixbm/xbmread.cxx
+7
-8
xbmread.hxx
svtools/source/inc/xbmread.hxx
+1
-1
imap2.cxx
svtools/source/misc/imap2.cxx
+6
-10
No files found.
svtools/source/filter/ixbm/xbmread.cxx
Dosyayı görüntüle @
03e3a208
...
...
@@ -197,7 +197,7 @@ long XBMReader::ParseDefine( const sal_Char* pDefine )
// ------------------------------------------------------------------------
sal_Bool
XBMReader
::
ParseData
(
SvStream
*
pInStm
,
const
Byte
String
&
aLastLine
,
XBMFormat
eFormat
)
sal_Bool
XBMReader
::
ParseData
(
SvStream
*
pInStm
,
const
rtl
::
O
String
&
aLastLine
,
XBMFormat
eFormat
)
{
rtl
::
OString
aLine
;
long
nRow
=
0
;
...
...
@@ -283,16 +283,14 @@ ReadState XBMReader::ReadXBM( Graphic& rGraphic )
// kehren wir zurueck und warten auf neue Daten
if
(
rIStm
.
GetError
()
!=
ERRCODE_IO_PENDING
)
{
ByteString
aLine
;
rIStm
.
Seek
(
nLastPos
);
bStatus
=
sal_False
;
aLine
=
FindTokenLine
(
&
rIStm
,
"#define"
,
"_width"
);
rtl
::
OString
aLine
=
FindTokenLine
(
&
rIStm
,
"#define"
,
"_width"
);
if
(
bStatus
)
{
int
nValue
;
if
(
(
nValue
=
(
int
)
ParseDefine
(
aLine
.
GetBuffe
r
()
)
)
>
0
)
if
(
(
nValue
=
(
int
)
ParseDefine
(
aLine
.
getSt
r
()
)
)
>
0
)
{
nWidth
=
nValue
;
aLine
=
FindTokenLine
(
&
rIStm
,
"#define"
,
"_height"
);
...
...
@@ -310,7 +308,7 @@ ReadState XBMReader::ReadXBM( Graphic& rGraphic )
if
(
bStatus
)
{
if
(
(
nValue
=
(
int
)
ParseDefine
(
aLine
.
GetBuffe
r
()
)
)
>
0
)
if
(
(
nValue
=
(
int
)
ParseDefine
(
aLine
.
getSt
r
()
)
)
>
0
)
{
nHeight
=
nValue
;
aLine
=
FindTokenLine
(
&
rIStm
,
"static"
,
"_bits"
);
...
...
@@ -319,9 +317,10 @@ ReadState XBMReader::ReadXBM( Graphic& rGraphic )
{
XBMFormat
eFormat
=
XBM10
;
if
(
aLine
.
Search
(
"short"
)
!=
STRING_NOTFOUND
)
using
comphelper
::
string
::
indexOfL
;
if
(
indexOfL
(
aLine
,
RTL_CONSTASCII_STRINGPARAM
(
"short"
))
!=
-
1
)
eFormat
=
XBM10
;
else
if
(
aLine
.
Search
(
"char"
)
!=
STRING_NOTFOUND
)
else
if
(
indexOfL
(
aLine
,
RTL_CONSTASCII_STRINGPARAM
(
"char"
))
!=
-
1
)
eFormat
=
XBM11
;
else
bStatus
=
sal_False
;
...
...
svtools/source/inc/xbmread.hxx
Dosyayı görüntüle @
03e3a208
...
...
@@ -72,7 +72,7 @@ class XBMReader : public GraphicReader
rtl
::
OString
FindTokenLine
(
SvStream
*
pInStm
,
const
char
*
pTok1
,
const
char
*
pTok2
=
NULL
,
const
char
*
pTok3
=
NULL
);
long
ParseDefine
(
const
sal_Char
*
pDefine
);
sal_Bool
ParseData
(
SvStream
*
pInStm
,
const
Byte
String
&
aLastLine
,
XBMFormat
eFormat
);
sal_Bool
ParseData
(
SvStream
*
pInStm
,
const
rtl
::
O
String
&
aLastLine
,
XBMFormat
eFormat
);
public
:
...
...
svtools/source/misc/imap2.cxx
Dosyayı görüntüle @
03e3a208
...
...
@@ -261,14 +261,12 @@ sal_uLong ImageMap::ImpReadCERN( SvStream& rIStm, const String& rBaseURL )
void
ImageMap
::
ImpReadCERNLine
(
const
rtl
::
OString
&
rLine
,
const
String
&
rBaseURL
)
{
ByteString
aStr
(
rLine
);
aStr
=
comphelper
::
string
::
stripStart
(
aStr
,
' '
);
rtl
::
OString
aStr
=
comphelper
::
string
::
stripStart
(
rLine
,
' '
);
aStr
=
comphelper
::
string
::
stripStart
(
aStr
,
'\t'
);
aStr
=
comphelper
::
string
::
remove
(
aStr
,
';'
);
aStr
.
ToLowerAscii
();
aStr
=
aStr
.
toAsciiLowerCase
();
const
char
*
pStr
=
aStr
.
GetBuffe
r
();
const
char
*
pStr
=
aStr
.
getSt
r
();
char
cChar
=
*
pStr
++
;
// Anweisung finden
...
...
@@ -405,14 +403,12 @@ sal_uLong ImageMap::ImpReadNCSA( SvStream& rIStm, const String& rBaseURL )
void
ImageMap
::
ImpReadNCSALine
(
const
rtl
::
OString
&
rLine
,
const
String
&
rBaseURL
)
{
ByteString
aStr
(
rLine
);
aStr
=
comphelper
::
string
::
stripStart
(
aStr
,
' '
);
rtl
::
OString
aStr
=
comphelper
::
string
::
stripStart
(
rLine
,
' '
);
aStr
=
comphelper
::
string
::
stripStart
(
aStr
,
'\t'
);
aStr
=
comphelper
::
string
::
remove
(
aStr
,
';'
);
aStr
.
ToLowerAscii
();
aStr
=
aStr
.
toAsciiLowerCase
();
const
char
*
pStr
=
aStr
.
GetBuffe
r
();
const
char
*
pStr
=
aStr
.
getSt
r
();
char
cChar
=
*
pStr
++
;
// Anweisung finden
...
...
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