Text.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
// Copyright (c) 1994 James Clark
// See the file COPYING for copying permission.
#pragma ident "%Z%%M% %I% %E% SMI"
#ifndef Text_INCLUDED
#define Text_INCLUDED 1
#ifdef __GNUG__
#pragma interface
#endif
#include "types.h"
#include "StringC.h"
#include "Vector.h"
#include "Location.h"
#include "SubstTable.h"
#include <stddef.h>
#ifdef SP_NAMESPACE
#endif
TextItem();
enum Type {
data,
};
// char that was ignored
Char c;
// location of this item
// data - location of first char
// ignore - location of ignored character
// startDelim - location of first char of delimiter
// endDelim(A) - location of first char of delimiter
// index of character in chars_ to which this applies
};
// This is used to represent literals and attribute values.
Text();
void clear();
void ignoreLastChar();
void addEntityStart(const Location &);
void addEntityEnd(const Location &);
// Location of first char of start delimiter.
// Location of first char of end delimiter
// Is delimiter a lit or lita?
};
void rewind();
const Location *&);
// Alternative interface to next()
void advance();
};
inline
{
}
inline
{
}
inline
{
return chars_;
}
inline
{
}
inline
{
}
inline
{
}
inline
{
}
inline
{
loc);
}
inline
{
}
inline
{
else
return Location();
}
inline
{
return 1;
}
else
return 0;
}
inline
{
}
inline
{
ptr_++;
}
inline
{
}
inline
{
}
inline
{
}
#ifdef SP_NAMESPACE
}
#endif
#endif /* not Text_INCLUDED */