NeoMutt
2025-12-11-1009-ga75d9e
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
parse.h
Go to the documentation of this file.
1
23
24
#ifndef MUTT_EXPANDO_PARSER_H
25
#define MUTT_EXPANDO_PARSER_H
26
27
#include <stdbool.h>
28
#include "
node_text.h
"
29
30
struct
ExpandoDefinition
;
31
struct
ExpandoNode
;
32
36
struct
ExpandoParseError
37
{
38
char
message
[1024];
39
const
char
*
position
;
40
};
41
42
struct
ExpandoNode
*
node_parse_one
(
const
char
*str,
NodeTextTermFlags
term_chars,
43
const
struct
ExpandoDefinition
*defs,
44
const
char
**parsed_until,
struct
ExpandoParseError
*err);
45
46
bool
node_parse_many
(
struct
ExpandoNode
*node_cont,
const
char
*str,
47
NodeTextTermFlags
term_chars,
const
struct
ExpandoDefinition
*defs,
48
const
char
**parsed_until,
struct
ExpandoParseError
*err);
49
50
#endif
/* MUTT_EXPANDO_PARSER_H */
node_parse_one
struct ExpandoNode * node_parse_one(const char *str, NodeTextTermFlags term_chars, const struct ExpandoDefinition *defs, const char **parsed_until, struct ExpandoParseError *err)
Parse a single Expando from a format string.
Definition
parse.c:49
node_parse_many
bool node_parse_many(struct ExpandoNode *node_cont, const char *str, NodeTextTermFlags term_chars, const struct ExpandoDefinition *defs, const char **parsed_until, struct ExpandoParseError *err)
Parse a format string.
Definition
parse.c:83
node_text.h
Expando Node for Text.
NodeTextTermFlags
uint8_t NodeTextTermFlags
Definition
node_text.h:39
ExpandoDefinition
Definition of a format string.
Definition
definition.h:49
ExpandoNode
Basic Expando Node.
Definition
node.h:67
ExpandoParseError
Buffer for parsing errors.
Definition
parse.h:37
ExpandoParseError::message
char message[1024]
Error message.
Definition
parse.h:38
ExpandoParseError::position
const char * position
Position of error in original string.
Definition
parse.h:39