Cogs.Core
Public Attributes | List of all members
GumboText Struct Reference

#include <gumbo.h>

Public Attributes

const char * text
 
GumboStringPiece original_text
 
GumboSourcePosition start_pos
 

Detailed Description

The struct used to represent TEXT, CDATA, COMMENT, and WHITESPACE elements. This contains just a block of text and its position.

Definition at line 450 of file gumbo.h.

Member Data Documentation

◆ original_text

GumboStringPiece GumboText::original_text

The original text of this node, as a pointer into the original buffer. For comment/cdata nodes, this includes the comment delimiters.

Definition at line 461 of file gumbo.h.

◆ start_pos

GumboSourcePosition GumboText::start_pos

The starting position of this node. This corresponds to the position of original_text, before entities are decoded.

Definition at line 467 of file gumbo.h.

◆ text

const char* GumboText::text

The text of this node, after entities have been parsed and decoded. For comment/cdata nodes, this does not include the comment delimiters.

Definition at line 455 of file gumbo.h.


The documentation for this struct was generated from the following file: