21#include <rtl/strbuf.hxx>
34 sal_uInt64 nOldFilePos = rIStm.
Tell();
37 OStringBuffer
aBuf(512);
42 sal_uInt16 nLen =
static_cast<sal_uInt16
>(rIStm.
ReadBytes(buf,
sizeof(buf)-1));
51 for( sal_uInt16
n = 0;
n < nLen ;
n++ )
54 if( c !=
'\n' && c !=
'\r' )
71 nOldFilePos +=
aBuf.getLength();
72 if( rIStm.
Tell() > nOldFilePos )
74 rIStm.
Seek( nOldFilePos );
76 if( bEnd && (c==
'\r' || c==
'\n'))
80 if( cTemp == c || (cTemp !=
'\n' && cTemp !=
'\r') )
81 rIStm.
Seek( nOldFilePos );
84 return aBuf.makeStringAndClear();
92 sal_uInt16 nLen =
static_cast<sal_uInt16
>(rIStm.
ReadBytes(buf,
sizeof(buf) - 1));
93 for (sal_uInt16
n = 0;
n < nLen;
n++)
96 if ((c ==
'\n') || (c ==
'\r'))
101 if (c1 == c || (c1 !=
'\n' && c1!=
'\r'))
123 nG =
static_cast<sal_uInt16
>(
ReadI());
127 else if (nG< 60)
F =
ReadF();
128 else if (nG< 80)
I =
ReadI();
130 else if (nG< 99)
I =
ReadI();
131 else if (nG==100)
ReadS();
132 else if (nG==102)
ReadS();
135 else if (nG< 148)
F =
ReadF();
137 else if (nG< 176)
I =
ReadI();
140 else if (nG< 240)
F =
ReadF();
143 else if (nG<1010)
ReadS();
144 else if (nG<1060)
F =
ReadF();
145 else if (nG<1072)
I =
ReadI();
161 char *
p=s.pData->buffer;
162 const char *
end = s.pData->buffer + s.pData->length;
164 while((
p !=
end) && (*
p==0x20))
p++;
166 if ((
p ==
end) || ((*p<'0' || *p>
'9') && *
p!=
'-')) {
171 OStringBuffer aNumber;
173 aNumber.append(*
p++);
176 while ((
p !=
end) && *
p >=
'0' && *
p <=
'9') {
177 aNumber.append(*
p++);
180 while ((
p !=
end) && (*
p==0x20))
p++;
192 char *
p = s.pData->buffer;
193 const char *
end = s.pData->buffer + s.pData->length;
195 while((
p !=
end) && (*
p==0x20))
p++;
196 if ((
p ==
end) || ((*p<'0' || *p>
'9') && *
p!=
'.' && *
p!=
'-')) {
sal_uInt64 remainingSize() const
DXFGroupReader(SvStream &rIStream)
sal_uInt64 Seek(sal_uInt64 nPos)
std::size_t ReadBytes(void *pData, std::size_t nSize)
sal_uInt64 SeekRel(sal_Int64 nPos)
sal_uInt64 remainingSize()
static void DXFSkipLine(SvStream &rIStm)
static OString DXFReadLine(SvStream &rIStm)
sal_Int32 toInt32(std::u16string_view str, sal_Int16 radix=10)