NeoMutt  2025-12-11-872-g385a04
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
node_text.h
Go to the documentation of this file.
1
23
24#ifndef MUTT_EXPANDO_NODE_TEXT_H
25#define MUTT_EXPANDO_NODE_TEXT_H
26
27#include <stdint.h>
28
33{
35 NTE_AMPERSAND = 1U << 0,
36 NTE_GREATER = 1U << 1,
37 NTE_QUESTION = 1U << 2,
38};
39typedef uint8_t NodeTextTermFlags;
40
41struct ExpandoNode *node_text_new(const char *text);
42struct ExpandoNode *node_text_parse(const char *str, NodeTextTermFlags term_chars, const char **parsed_until);
43
44#endif /* MUTT_EXPANDO_NODE_TEXT_H */
struct ExpandoNode * node_text_new(const char *text)
Create a new Text ExpandoNode.
Definition node_text.c:59
struct ExpandoNode * node_text_parse(const char *str, NodeTextTermFlags term_chars, const char **parsed_until)
Extract a block of text.
Definition node_text.c:86
uint8_t NodeTextTermFlags
Definition node_text.h:39
NodeTextTermFlag
Special characters that end a text string.
Definition node_text.h:33
@ NTE_NONE
No flags are set.
Definition node_text.h:34
@ NTE_AMPERSAND
'&' Ampersand
Definition node_text.h:35
@ NTE_GREATER
'>' Greater than
Definition node_text.h:36
@ NTE_QUESTION
'?' Question mark
Definition node_text.h:37
Basic Expando Node.
Definition node.h:67
const char * text
Node-specific text.
Definition node.h:73