NeoMutt
2025-12-11-1009-ga75d9e
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
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
32
enum
NodeTextTermFlag
33
{
34
NTE_NONE
= 0,
35
NTE_AMPERSAND
= 1U << 0,
36
NTE_GREATER
= 1U << 1,
37
NTE_QUESTION
= 1U << 2,
38
};
39
typedef
uint8_t
NodeTextTermFlags
;
40
41
struct
ExpandoNode
*
node_text_new
(
const
char
*
text
);
42
struct
ExpandoNode
*
node_text_parse
(
const
char
*str,
NodeTextTermFlags
term_chars,
const
char
**parsed_until);
43
44
#endif
/* MUTT_EXPANDO_NODE_TEXT_H */
node_text_new
struct ExpandoNode * node_text_new(const char *text)
Create a new Text ExpandoNode.
Definition
node_text.c:59
node_text_parse
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
NodeTextTermFlags
uint8_t NodeTextTermFlags
Definition
node_text.h:39
NodeTextTermFlag
NodeTextTermFlag
Special characters that end a text string.
Definition
node_text.h:33
NTE_NONE
@ NTE_NONE
No flags are set.
Definition
node_text.h:34
NTE_AMPERSAND
@ NTE_AMPERSAND
'&' Ampersand
Definition
node_text.h:35
NTE_GREATER
@ NTE_GREATER
'>' Greater than
Definition
node_text.h:36
NTE_QUESTION
@ NTE_QUESTION
'?' Question mark
Definition
node_text.h:37
ExpandoNode
Basic Expando Node.
Definition
node.h:67
ExpandoNode::text
const char * text
Node-specific text.
Definition
node.h:73