version 1.12, 2011/07/11 08:43:27 |
version 1.16, 2011/11/08 00:15:23 |
|
|
.Nm mandoc , |
.Nm mandoc , |
.Nm mandoc_escape , |
.Nm mandoc_escape , |
.Nm man_meta , |
.Nm man_meta , |
|
.Nm man_mparse , |
.Nm man_node , |
.Nm man_node , |
.Nm mchars_alloc , |
.Nm mchars_alloc , |
.Nm mchars_free , |
.Nm mchars_free , |
|
|
.Nm mdoc_node , |
.Nm mdoc_node , |
.Nm mparse_alloc , |
.Nm mparse_alloc , |
.Nm mparse_free , |
.Nm mparse_free , |
|
.Nm mparse_getkeep , |
|
.Nm mparse_keep , |
.Nm mparse_readfd , |
.Nm mparse_readfd , |
.Nm mparse_reset , |
.Nm mparse_reset , |
.Nm mparse_result , |
.Nm mparse_result , |
|
|
.In mandoc.h |
.In mandoc.h |
.Ft "enum mandoc_esc" |
.Ft "enum mandoc_esc" |
.Fo mandoc_escape |
.Fo mandoc_escape |
.Fa "const char **in" |
.Fa "const char **end" |
.Fa "const char **seq" |
.Fa "const char **start" |
.Fa "int *len" |
.Fa "int *sz" |
.Fc |
.Fc |
.Ft "const struct man_meta *" |
.Ft "const struct man_meta *" |
.Fo man_meta |
.Fo man_meta |
.Fa "const struct man *man" |
.Fa "const struct man *man" |
.Fc |
.Fc |
|
.Ft "const struct mparse *" |
|
.Fo man_mparse |
|
.Fa "const struct man *man" |
|
.Fc |
.Ft "const struct man_node *" |
.Ft "const struct man_node *" |
.Fo man_node |
.Fo man_node |
.Fa "const struct man *man" |
.Fa "const struct man *man" |
|
|
.Fn mchars_num2uc "const char *cp" "size_t sz" |
.Fn mchars_num2uc "const char *cp" "size_t sz" |
.Ft "const char *" |
.Ft "const char *" |
.Fo mchars_spec2str |
.Fo mchars_spec2str |
.Fa "struct mchars *p" |
.Fa "const struct mchars *p" |
.Fa "const char *cp" |
.Fa "const char *cp" |
.Fa "size_t sz" |
.Fa "size_t sz" |
.Fa "size_t *rsz" |
.Fa "size_t *rsz" |
.Fc |
.Fc |
.Ft int |
.Ft int |
.Fo mchars_spec2cp |
.Fo mchars_spec2cp |
.Fa "struct mchars *p" |
.Fa "const struct mchars *p" |
.Fa "const char *cp" |
.Fa "const char *cp" |
.Fa "size_t sz" |
.Fa "size_t sz" |
.Ft "const char *" |
.Ft "const char *" |
|
|
.Fo mparse_free |
.Fo mparse_free |
.Fa "struct mparse *parse" |
.Fa "struct mparse *parse" |
.Fc |
.Fc |
|
.Ft void |
|
.Fo mparse_getkeep |
|
.Fa "const struct mparse *parse" |
|
.Fc |
|
.Ft void |
|
.Fo mparse_keep |
|
.Fa "struct mparse *parse" |
|
.Fc |
.Ft "enum mandoclevel" |
.Ft "enum mandoclevel" |
.Fo mparse_readfd |
.Fo mparse_readfd |
.Fa "struct mparse *parse" |
.Fa "struct mparse *parse" |
|
|
Obtain the meta-data of a successful parse. |
Obtain the meta-data of a successful parse. |
This may only be used on a pointer returned by |
This may only be used on a pointer returned by |
.Fn mparse_result . |
.Fn mparse_result . |
|
.It Fn man_mparse |
|
Get the parser used for the current output. |
.It Fn man_node |
.It Fn man_node |
Obtain the root node of a successful parse. |
Obtain the root node of a successful parse. |
This may only be used on a pointer returned by |
This may only be used on a pointer returned by |
Line 294 must be called to free the memory allocated by this fu |
|
Line 311 must be called to free the memory allocated by this fu |
|
.It Fn mparse_free |
.It Fn mparse_free |
Free all memory allocated by |
Free all memory allocated by |
.Fn mparse_alloc . |
.Fn mparse_alloc . |
|
.It Fn mparse_getkeep |
|
Acquire the keep buffer. |
|
Must follow a call of |
|
.Fn mparse_keep . |
|
.It Fn mparse_keep |
|
Instruct the parser to retain a copy of its parsed input. |
|
This can be acquired with subsequent |
|
.Fn mparse_getkeep |
|
calls. |
.It Fn mparse_readfd |
.It Fn mparse_readfd |
Parse a file or file descriptor. |
Parse a file or file descriptor. |
If |
If |
Line 568 levels of badly-nested blocks. |
|
Line 594 levels of badly-nested blocks. |
|
The |
The |
.Nm |
.Nm |
library was written by |
library was written by |
.An Kristaps Dzonsons Aq kristaps@bsd.lv . |
.An Kristaps Dzonsons , |
|
.Mt kristaps@bsd.lv . |