Hubbub $Id$
Functions
element-type.c File Reference
#include "treebuilder/element-type.h"
#include "treebuilder/autogenerated-element-type.c"

Functions

element_type element_type_from_name (hubbub_treebuilder *treebuilder, const hubbub_string *tag_name)
 Convert an element name into an element type. More...
 
const char * element_type_to_name (element_type type)
 Convert an element type to a name. More...
 

Function Documentation

◆ element_type_from_name()

element_type element_type_from_name ( hubbub_treebuilder treebuilder,
const hubbub_string tag_name 
)

Convert an element name into an element type.

Parameters
treebuilderThe treebuilder instance
tag_nameThe tag name to consider
Returns
The corresponding element type

◆ element_type_to_name()

const char * element_type_to_name ( element_type  type)

Convert an element type to a name.

Parameters
typeThe element type
Returns
Pointer to name