Dali 3D User Interface Engine
Classes | Functions | Variables
Dali::Toolkit::Text::anonymous_namespace{markup-processor.cpp} Namespace Reference

Classes

struct  StyleStack
 Struct used to retrieve the style runs from the mark-up string. More...
 

Functions

const std::string XHTML_COLOR_TAG ("color")
 
const std::string XHTML_FONT_TAG ("font")
 
const std::string XHTML_B_TAG ("b")
 
const std::string XHTML_I_TAG ("i")
 
const std::string XHTML_U_TAG ("u")
 
const std::string XHTML_SHADOW_TAG ("shadow")
 
const std::string XHTML_GLOW_TAG ("glow")
 
const std::string XHTML_OUTLINE_TAG ("outline")
 
void ParseAttributes (Tag &tag)
 Splits the tag string into the tag name and its attributes. More...
 
bool IsTag (const char *&markupStringBuffer, const char *const markupStringEndBuffer, Tag &tag)
 It parses a tag and its attributes if the given iterator it is pointing at a tag beginning. More...
 

Variables

const char LESS_THAN = '<'
 
const char GREATER_THAN = '>'
 
const char EQUAL = '='
 
const char QUOTATION_MARK = '\''
 
const char SLASH = '/'
 
const char BACK_SLASH = '\\'
 
const char WHITE_SPACE = 0x20
 
const unsigned int MAX_NUM_OF_ATTRIBUTES = 5u
 The font tag has the 'family', 'size' 'weight', 'width' and 'slant' attrubutes. More...
 
const unsigned int DEFAULT_VECTOR_SIZE = 16u
 Default size of run vectors. More...
 

Function Documentation

bool Dali::Toolkit::Text::anonymous_namespace{markup-processor.cpp}::IsTag ( const char *&  markupStringBuffer,
const char *const  markupStringEndBuffer,
Tag &  tag 
)

It parses a tag and its attributes if the given iterator it is pointing at a tag beginning.

Parameters
[in,out]markupStringBufferThe mark-up string buffer. It's a const iterator pointing the current character.
[in]markupStringEndBufferPointer to one character after the end of the mark-up string buffer.
[out]tagThe tag with its attributes.
Returns
true if the iterator it is pointing a mark-up tag. Otherwise false.

Definition at line 257 of file markup-processor.cpp.

References Dali::Toolkit::Text::Tag::buffer, Dali::Toolkit::Text::Tag::isEndTag, Dali::Toolkit::Text::Tag::length, ParseAttributes(), and Dali::Toolkit::Text::SkipWhiteSpace().

Referenced by Dali::Toolkit::Text::ProcessMarkupString().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Toolkit::Text::anonymous_namespace{markup-processor.cpp}::ParseAttributes ( Tag &  tag)

Splits the tag string into the tag name and its attributes.

The attributes are stored in a vector in the tag.

Parameters
[in,out]tagThe tag.

Definition at line 111 of file markup-processor.cpp.

References Dali::Toolkit::Text::Tag::attributes, Dali::Toolkit::Text::Tag::buffer, Dali::Toolkit::Text::Tag::length, Dali::Toolkit::Text::Attribute::nameBuffer, Dali::Toolkit::Text::Attribute::nameLength, Dali::Toolkit::Text::SkipWhiteSpace(), Dali::Toolkit::Text::Attribute::valueBuffer, and Dali::Toolkit::Text::Attribute::valueLength.

Referenced by IsTag().

Here is the call graph for this function:

Here is the caller graph for this function:

const std::string Dali::Toolkit::Text::anonymous_namespace{markup-processor.cpp}::XHTML_B_TAG ( "b"  )

Referenced by Dali::Toolkit::Text::ProcessMarkupString().

Here is the caller graph for this function:

const std::string Dali::Toolkit::Text::anonymous_namespace{markup-processor.cpp}::XHTML_COLOR_TAG ( "color"  )

Referenced by Dali::Toolkit::Text::ProcessMarkupString().

Here is the caller graph for this function:

const std::string Dali::Toolkit::Text::anonymous_namespace{markup-processor.cpp}::XHTML_FONT_TAG ( "font"  )

Referenced by Dali::Toolkit::Text::ProcessMarkupString().

Here is the caller graph for this function:

const std::string Dali::Toolkit::Text::anonymous_namespace{markup-processor.cpp}::XHTML_GLOW_TAG ( "glow"  )

Referenced by Dali::Toolkit::Text::ProcessMarkupString().

Here is the caller graph for this function:

const std::string Dali::Toolkit::Text::anonymous_namespace{markup-processor.cpp}::XHTML_I_TAG ( "i"  )

Referenced by Dali::Toolkit::Text::ProcessMarkupString().

Here is the caller graph for this function:

const std::string Dali::Toolkit::Text::anonymous_namespace{markup-processor.cpp}::XHTML_OUTLINE_TAG ( "outline"  )

Referenced by Dali::Toolkit::Text::ProcessMarkupString().

Here is the caller graph for this function:

const std::string Dali::Toolkit::Text::anonymous_namespace{markup-processor.cpp}::XHTML_SHADOW_TAG ( "shadow"  )

Referenced by Dali::Toolkit::Text::ProcessMarkupString().

Here is the caller graph for this function:

const std::string Dali::Toolkit::Text::anonymous_namespace{markup-processor.cpp}::XHTML_U_TAG ( "u"  )

Referenced by Dali::Toolkit::Text::ProcessMarkupString().

Here is the caller graph for this function:

Variable Documentation

const char Dali::Toolkit::Text::anonymous_namespace{markup-processor.cpp}::BACK_SLASH = '\\'

Definition at line 55 of file markup-processor.cpp.

Referenced by Dali::Toolkit::Text::ProcessMarkupString().

const unsigned int Dali::Toolkit::Text::anonymous_namespace{markup-processor.cpp}::DEFAULT_VECTOR_SIZE = 16u

Default size of run vectors.

Definition at line 60 of file markup-processor.cpp.

Referenced by Dali::Toolkit::Text::ProcessMarkupString().

const char Dali::Toolkit::Text::anonymous_namespace{markup-processor.cpp}::EQUAL = '='

Definition at line 52 of file markup-processor.cpp.

const char Dali::Toolkit::Text::anonymous_namespace{markup-processor.cpp}::GREATER_THAN = '>'

Definition at line 51 of file markup-processor.cpp.

Referenced by Dali::Toolkit::Text::ProcessMarkupString().

const char Dali::Toolkit::Text::anonymous_namespace{markup-processor.cpp}::LESS_THAN = '<'

Definition at line 50 of file markup-processor.cpp.

Referenced by Dali::Toolkit::Text::ProcessMarkupString().

const unsigned int Dali::Toolkit::Text::anonymous_namespace{markup-processor.cpp}::MAX_NUM_OF_ATTRIBUTES = 5u

The font tag has the 'family', 'size' 'weight', 'width' and 'slant' attrubutes.

Definition at line 59 of file markup-processor.cpp.

const char Dali::Toolkit::Text::anonymous_namespace{markup-processor.cpp}::QUOTATION_MARK = '\''

Definition at line 53 of file markup-processor.cpp.

const char Dali::Toolkit::Text::anonymous_namespace{markup-processor.cpp}::SLASH = '/'

Definition at line 54 of file markup-processor.cpp.

const char Dali::Toolkit::Text::anonymous_namespace{markup-processor.cpp}::WHITE_SPACE = 0x20

Definition at line 57 of file markup-processor.cpp.

Dali Docs Home
Read more about Dali