Keep track when processing files. More...
#include "config.h"
#include <limits.h>
#include <stdarg.h>
#include <wchar.h>
#include "mutt/lib.h"
#include "state.h"
#include "mutt_globals.h"
Go to the source code of this file.
Functions | |
void | state_mark_attach (struct State *s) |
Write a unique marker around content. More... | |
void | state_mark_protected_header (struct State *s) |
Write a unique marker around protected headers. More... | |
void | state_attach_puts (struct State *s, const char *t) |
Write a string to the state. More... | |
static int | state_putwc (struct State *s, wchar_t wc) |
Write a wide character to the state. More... | |
int | state_putws (struct State *s, const wchar_t *ws) |
Write a wide string to the state. More... | |
void | state_prefix_putc (struct State *s, char c) |
Write a prefixed character to the state. More... | |
int | state_printf (struct State *s, const char *fmt,...) |
Write a formatted string to the State. More... | |
void | state_prefix_put (struct State *s, const char *buf, size_t buflen) |
Write a prefixed fixed-string to the State. More... | |
Keep track when processing files.
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 state.c.
void state_mark_attach | ( | struct State * | s | ) |
Write a unique marker around content.
s | State to write to |
Definition at line 41 of file state.c.
void state_mark_protected_header | ( | struct State * | s | ) |
Write a unique marker around protected headers.
s | State to write to |
Definition at line 56 of file state.c.
void state_attach_puts | ( | struct State * | s, |
const char * | t | ||
) |
Write a string to the state.
s | State to write to |
t | Text to write |
Definition at line 70 of file state.c.
|
static |
int state_putws | ( | struct State * | s, |
const wchar_t * | ws | ||
) |
Write a wide string to the state.
s | State to write to |
ws | Wide string to write |
0 | Success |
-1 | Error |
Definition at line 113 of file state.c.
void state_prefix_putc | ( | struct State * | s, |
char | c | ||
) |
Write a prefixed character to the state.
s | State to write to |
c | Character to write |
Definition at line 131 of file state.c.
int state_printf | ( | struct State * | s, |
const char * | fmt, | ||
... | |||
) |
void state_prefix_put | ( | struct State * | s, |
const char * | buf, | ||
size_t | buflen | ||
) |
Write a prefixed fixed-string to the State.
s | State to write to |
buf | String to write |
buflen | Length of string |
Definition at line 171 of file state.c.