24#include <rtl/strbuf.hxx>
25#include<rtl/character.hxx>
86 , aFileName( rFileName )
98 aTokList.push_back(std::unique_ptr<SvToken>(pToken));
106 std::vector<std::unique_ptr<SvToken> >::const_iterator it =
aTokList.begin();
108 pToken->
SetLine((*it)->GetLine());
115 else if( pToken->
IsEof() )
120 aTokList.push_back(std::unique_ptr<SvToken>(pToken));
123 while( !pToken->
IsEof() );
168 while( rtl::isAsciiHexDigit(
static_cast<unsigned char>(
c) ) )
170 if( rtl::isAsciiDigit(
static_cast<unsigned char>(
c) ) )
171 l = l * nLog + (
c -
'0');
174 + (rtl::toAsciiUpperCase(
static_cast<unsigned char>(
c) )
181 while( rtl::isAsciiDigit(
static_cast<unsigned char>(
c) ) ||
'x' ==
c )
183 l = l * nLog + (
c -
'0');
198 while( rtl::isAsciiWhiteSpace(
static_cast<unsigned char>(
c) )
207 sal_uInt64 nLastLine =
nLine;
208 sal_uInt64 nLastColumn =
nColumn;
257 OStringBuffer
aStr(128);
259 while( !bDone && !
IsEof() &&
c )
283 else if( rtl::isAsciiDigit(
static_cast<unsigned char>(
c) ) )
289 else if( rtl::isAsciiAlpha (
static_cast<unsigned char>(
c)) || (
c ==
'_') )
291 OStringBuffer
aBuf(64);
292 while( rtl::isAsciiAlphanumeric(
static_cast<unsigned char>(
c) )
293 ||
c ==
'_' ||
c ==
':')
298 OString
aStr =
aBuf.makeStringAndClear();
307 rToken.
bBool =
false;
bool MakeToken(SvToken &)
SvTokenStream(const OUString &rFileName)
std::vector< std::unique_ptr< SvToken > >::iterator pCurToken
std::vector< std::unique_ptr< SvToken > > aTokList
std::unique_ptr< SvFileStream > pInStream
static const sal_uInt16 nTabSize
void SetColumn(sal_uInt64 nColumnP)
OString GetTokenAsString() const
void SetLine(sal_uInt64 nLineP)
void SetHash(SvStringHashEntry *pHashP)
SvToken & operator=(const SvToken &rObj)