40 #ifndef _uitexttoken_h
41 #define _uitexttoken_h
110 virtual const String& GetRawCharacterString()
const;
116 virtual UInt32 GetRawCharacterSize()
const;
121 virtual UInt32 GetRenderCharacterSize()
const;
154 virtual UInt32 ClearAllCharacters();
187 const String& GetTagName()
const;
238 virtual UInt32 ClearAllCharacters();
275 virtual UInt32 ClearAllCharacters();
305 TokenIndexPair GetTokenIndex(
const UInt32 Index);
317 virtual String GetRawString()
const;
320 Whole GetNumCharacters()
const;
323 Whole GetNumTokens()
const;
327 TokenIterator BeginToken();
330 TokenIterator EndToken();
333 ConstTokenIterator BeginToken()
const;
336 ConstTokenIterator EndToken()
const;
340 ReverseTokenIterator ReverseBeginToken();
343 ReverseTokenIterator ReverseEndToken();
346 ConstReverseTokenIterator ReverseBeginToken()
const;
349 ConstReverseTokenIterator ReverseEndToken()
const;
357 virtual void PushToken(
TextToken* ToBePushed);
361 virtual void PushTokens(
const TokenContainer& ToBePushed);
363 virtual void DestroyAllTokens();
396 virtual UInt32 ClearAllCharacters();
TokenContainer Tokens
Container for TextToken storage.
This class represents a normal text segment from the source string.
NameValuePairMap Params
The parameters provided for this tag, if any.
String TagName
Unconverted version of the tag name.
This struct represents a markup tag segment from the source string.
This is a helper class that facilitates operations with collections of tokens generated from Markup P...
UInt32 RenderSize
The number of rendered characters this token produced.
All the definitions for datatypes as well as some basic conversion functions are defined here...
std::pair< TokenIterator, UInt32 > TokenIndexPair
An std::pair used to report the result of a TextToken and it's local index.
char Char8
A datatype to represent one character.
TokenContainer::reverse_iterator ReverseTokenIterator
Reverse Iterator type for TextToken instances being stored by this class.
uint32_t UInt32
An 32-bit unsigned integer.
std::vector< TextToken * > TokenContainer
Basic container type for the storage of TextToken instances by this class.
TokenType
The type of token this class represents.
This struct represents a markup tag segment from the source string.
This struct represents a markup tag segment from the source string.
RangeTagToken * PartnerTag
Pointer to the opening/closing tag for this tag.
The bulk of the engine components go in this namspace.
TokenContainer::iterator TokenIterator
Iterator type for TextToken instances being stored by this class.
unsigned long Whole
Whole is an unsigned integer, it will be at least 32bits in size.
TokenContainer::const_iterator ConstTokenIterator
Const Iterator type for TextToken instances being stored by this class.
This is a base class for the parsing of markup texts contained in text layers.
TokenType Type
Type of token this is.
String Text
Container for the converted text.
std::map< String, String > NameValuePairMap
This is a datatype mostly used for describing settings or parameters that can't be declared in advanc...
std::string String
A datatype used to a series of characters.
TokenContainer::const_reverse_iterator ConstReverseTokenIterator
Const Reverse Iterator type for TextToken instances being stored by this class.