#include "config.h"
#include <stddef.h>
#include "mutt/lib.h"
#include "expando.h"
#include "node.h"
#include "node_condition.h"
#include "node_container.h"
#include "node_padding.h"
#include "parse.h"
#include "render.h"
Go to the source code of this file.
Functions | |
struct Expando * | expando_new (const char *format) |
Create an Expando from a string. | |
void | expando_free (struct Expando **ptr) |
Free an Expando object. | |
struct Expando * | expando_parse (const char *str, const struct ExpandoDefinition *defs, struct Buffer *err) |
Parse an Expando string. | |
int | expando_render (const struct Expando *exp, const struct ExpandoRenderData *rdata, void *data, MuttFormatFlags flags, int max_cols, struct Buffer *buf) |
Render an Expando + data into a string. | |
bool | expando_equal (const struct Expando *a, const struct Expando *b) |
Compare two expandos. | |
Parsed 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 expando.c.
struct Expando * expando_new | ( | const char * | format | ) |
Create an Expando from a string.
format | Format string to parse |
ptr | New Expando object |
Definition at line 46 of file expando.c.
void expando_free | ( | struct Expando ** | ptr | ) |
struct Expando * expando_parse | ( | const char * | str, |
const struct ExpandoDefinition * | defs, | ||
struct Buffer * | err | ||
) |
Parse an Expando string.
ptr | New Expando |
Definition at line 78 of file expando.c.
int expando_render | ( | const struct Expando * | exp, |
const struct ExpandoRenderData * | rdata, | ||
void * | data, | ||
MuttFormatFlags | flags, | ||
int | max_cols, | ||
struct Buffer * | buf | ||
) |
Render an Expando + data into a string.
[in] | exp | Expando containing the expando tree |
[in] | rdata | Expando render data |
[in] | data | Callback data |
[in] | flags | Callback flags |
[in] | max_cols | Number of screen columns (-1 means unlimited) |
[out] | buf | Buffer in which to save string |
num | Number of bytes written to buf and screen columns used |
Definition at line 124 of file expando.c.
Compare two expandos.
true | They are identical |
Definition at line 143 of file expando.c.