Expando Node for an Expando. More...
Go to the source code of this file.
Data Structures | |
struct | NodeExpandoPrivate |
Private data for an Expando. More... | |
Functions | |
struct ExpandoNode * | node_expando_new (const char *start, const char *end, struct ExpandoFormat *fmt, int did, int uid) |
Create a new Expando ExpandoNode. | |
void | node_expando_set_color (const struct ExpandoNode *node, int cid) |
Set the colour for an Expando. | |
void | node_expando_set_has_tree (const struct ExpandoNode *node, bool has_tree) |
Set the has_tree flag for an Expando. | |
struct ExpandoNode * | node_expando_parse (const char *s, const char **parsed_until, const struct ExpandoDefinition *defs, ExpandoParserFlags flags, struct ExpandoParseError *error) |
Parse an Expando format string. | |
int | node_expando_render (const struct ExpandoNode *node, const struct ExpandoRenderData *rdata, struct Buffer *buf, int max_cols, void *data, MuttFormatFlags flags) |
Render an Expando Node - Implements ExpandoNode::render() -. | |
struct ExpandoNode * | node_expando_parse_enclosure (const char *s, const char **parsed_until, int did, int uid, char terminator, struct ExpandoParseError *error) |
Parse an enclosed Expando. | |
const char * | skip_classic_expando (const char *s, const struct ExpandoDefinition *defs) |
Skip over the text of an Expando. | |
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_expando.h.
struct ExpandoNode * node_expando_new | ( | const char * | start, |
const char * | end, | ||
struct ExpandoFormat * | fmt, | ||
int | did, | ||
int | uid | ||
) |
Create a new Expando ExpandoNode.
start | Start of Expando string |
end | End of Expando string |
fmt | Formatting data |
did | Domain ID |
uid | Unique ID |
ptr | New Expando ExpandoNode |
Definition at line 81 of file node_expando.c.
void node_expando_set_color | ( | const struct ExpandoNode * | node, |
int | cid | ||
) |
Set the colour for an Expando.
node | Node to alter |
cid | Colour |
Definition at line 107 of file node_expando.c.
void node_expando_set_has_tree | ( | const struct ExpandoNode * | node, |
bool | has_tree | ||
) |
Set the has_tree flag for an Expando.
node | Node to alter |
has_tree | Flag to set |
Definition at line 122 of file node_expando.c.
struct ExpandoNode * node_expando_parse | ( | const char * | str, |
const char ** | parsed_until, | ||
const struct ExpandoDefinition * | defs, | ||
ExpandoParserFlags | flags, | ||
struct ExpandoParseError * | error | ||
) |
Parse an Expando format string.
[in] | str | String to parse |
[out] | parsed_until | First character after parsed string |
[in] | defs | Expando definitions |
[in] | flags | Flag for conditional expandos |
[out] | error | Buffer for errors |
ptr | New ExpandoNode |
Definition at line 238 of file node_expando.c.
struct ExpandoNode * node_expando_parse_enclosure | ( | const char * | str, |
const char ** | parsed_until, | ||
int | did, | ||
int | uid, | ||
char | terminator, | ||
struct ExpandoParseError * | error | ||
) |
Parse an enclosed Expando.
str | String to parse |
parsed_until | First character after the parsed string |
did | Domain ID |
uid | Unique ID |
terminator | Terminating character |
error | Buffer for errors |
ptr | New ExpandoNode |
Definition at line 297 of file node_expando.c.
const char * skip_classic_expando | ( | const char * | str, |
const struct ExpandoDefinition * | defs | ||
) |
Skip over the text of an Expando.
str | Starting place |
defs | Expando definitions |
ptr | Character after Expando, or end-of-string |
Definition at line 145 of file helpers.c.