version 1.11, 2011/06/22 22:10:02 |
version 1.13, 2011/08/18 08:58:44 |
|
|
.It Vt "enum mparset" |
.It Vt "enum mparset" |
The type of parser when reading input. |
The type of parser when reading input. |
This should usually be |
This should usually be |
.Va MPARSE_AUTO |
.Dv MPARSE_AUTO |
for auto-detection. |
for auto-detection. |
.It Vt "struct mparse" |
.It Vt "struct mparse" |
An opaque pointer to a running parse sequence. |
An opaque pointer to a running parse sequence. |
Line 222 Scan an escape sequence, i.e., a character string begi |
|
Line 222 Scan an escape sequence, i.e., a character string begi |
|
Pass a pointer to this string as |
Pass a pointer to this string as |
.Va end ; |
.Va end ; |
it will be set to the supremum of the parsed escape sequence unless |
it will be set to the supremum of the parsed escape sequence unless |
returning ESCAPE_ERROR, in which case the string is bogus and should be |
returning |
|
.Dv ESCAPE_ERROR , |
|
in which case the string is bogus and should be |
thrown away. |
thrown away. |
If not ESCAPE_ERROR or ESCAPE_IGNORE, |
If not |
|
.Dv ESCAPE_ERROR |
|
or |
|
.Dv ESCAPE_IGNORE , |
.Va start |
.Va start |
is set to the first relevant character of the substring (font, glyph, |
is set to the first relevant character of the substring (font, glyph, |
whatever) of length |
whatever) of length |
|
|
.Va start |
.Va start |
and |
and |
.Va sz |
.Va sz |
may be NULL. |
may be |
|
.Dv NULL . |
.It Fn man_meta |
.It Fn man_meta |
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 |
Line 267 Convert a special character into a valid Unicode codep |
|
Line 273 Convert a special character into a valid Unicode codep |
|
Returns \-1 on failure or a non-zero Unicode codepoint on success. |
Returns \-1 on failure or a non-zero Unicode codepoint on success. |
.It Fn mchars_spec2str |
.It Fn mchars_spec2str |
Convert a special character into an ASCII string. |
Convert a special character into an ASCII string. |
Returns NULL on failure. |
Returns |
|
.Dv NULL |
|
on failure. |
.It Fn mdoc_meta |
.It Fn mdoc_meta |
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 |
Line 560 levels of badly-nested blocks. |
|
Line 568 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 . |