39 sal_Int32 nStt = -1, nEnd = -1, nFragStart = -1, nFragEnd = -1;
52 std::string_view sView(sLine);
53 if (sTmp ==
"StartHTML")
55 else if (sTmp ==
"EndHTML")
57 else if (sTmp ==
"StartFragment")
59 else if (sTmp ==
"EndFragment")
61 else if (sTmp ==
"SourceURL")
62 sBaseURL = OStringToOUString( sView.substr(
nIndex), RTL_TEXTENCODING_UTF8 );
64 if (nEnd >= 0 && nStt >= 0 &&
80 pStrm->WriteStream( rStream );
81 pStrm->SetStreamSize( nEnd - nStt + 1 );
86 if (nFragStart > 0 && nFragEnd > 0 && nFragEnd > nFragStart)
88 size_t nSize = nFragEnd - nFragStart + 1;
91 rStream.
Seek(nFragStart);
93 pStrm->WriteStream( rStream );
94 pStrm->SetStreamSize(nSize);
virtual void ResetError()
bool ReadLine(OStringBuffer &rStr, sal_Int32 nMaxBytesToRead=0xFFFE)
sal_uInt64 Seek(sal_uInt64 nPos)
constexpr std::enable_if_t< std::is_signed_v< T >, std::make_unsigned_t< T > > make_unsigned(T value)
sal_Int32 toInt32(std::u16string_view str, sal_Int16 radix=10)
std::basic_string_view< charT, traits > getToken(std::basic_string_view< charT, traits > sv, charT delimiter, std::size_t &position)
#define STREAM_SEEK_TO_BEGIN