Expando Node for Text. More...
#include "config.h"
#include <stdbool.h>
#include "mutt/lib.h"
#include "node_text.h"
#include "format.h"
#include "node.h"
#include "render.h"
Go to the source code of this file.
Functions | |
static int | node_text_render (const struct ExpandoNode *node, const struct ExpandoRenderData *rdata, struct Buffer *buf, int max_cols, void *data, MuttFormatFlags flags) |
Render a Text Node - Implements ExpandoNode::render() -. | |
struct ExpandoNode * | node_text_new (const char *start, const char *end) |
Create a new Text ExpandoNode. | |
static const char * | skip_until_ch_or_end (const char *start, char terminator, const char *end) |
Search for a terminator character. | |
struct ExpandoNode * | node_text_parse (const char *str, const char *end, const char **parsed_until) |
Extract a block of text. | |
Expando Node for Text.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file node_text.c.
struct ExpandoNode * node_text_new | ( | const char * | start, |
const char * | end | ||
) |
Create a new Text ExpandoNode.
start | Start of text to store |
end | End of text to store |
ptr | New Text ExpandoNode |
Definition at line 57 of file node_text.c.
|
static |
Search for a terminator character.
start | Start of string |
terminator | Terminating character |
end | End of string |
ptr | Position of terminator character, or end-of-string |
Definition at line 75 of file node_text.c.
struct ExpandoNode * node_text_parse | ( | const char * | str, |
const char * | end, | ||
const char ** | parsed_until | ||
) |
Extract a block of text.
str | String to parse |
end | End of string |
parsed_until | First character after parsed text |
ptr | New Text ExpandoNode |
Definition at line 102 of file node_text.c.