Deleted Added
full compact
mchars_alloc.3 (274880) mchars_alloc.3 (275432)
1.\" $Id: mchars_alloc.3,v 1.1 2014/08/05 05:48:56 schwarze Exp $
1.\" $Id: mchars_alloc.3,v 1.2 2014/10/26 18:07:28 schwarze Exp $
2.\"
3.\" Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
4.\"
5.\" Permission to use, copy, modify, and distribute this software for any
6.\" purpose with or without fee is hereby granted, provided that the above
7.\" copyright notice and this permission notice appear in all copies.
8.\"
9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\"
2.\"
3.\" Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
4.\"
5.\" Permission to use, copy, modify, and distribute this software for any
6.\" purpose with or without fee is hereby granted, provided that the above
7.\" copyright notice and this permission notice appear in all copies.
8.\"
9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\"
17.Dd $Mdocdate: August 5 2014 $
17.Dd $Mdocdate: October 26 2014 $
18.Dt MCHARS_ALLOC 3
19.Os
20.Sh NAME
21.Nm mchars_alloc ,
22.Nm mchars_free ,
23.Nm mchars_num2char ,
24.Nm mchars_num2uc ,
25.Nm mchars_spec2cp ,

--- 28 unchanged lines hidden (view full) ---

54.Fc
55.Ft "const char *"
56.Fo mchars_spec2str
57.Fa "const struct mchars *table"
58.Fa "const char *name"
59.Fa "size_t sz"
60.Fa "size_t *rsz"
61.Fc
18.Dt MCHARS_ALLOC 3
19.Os
20.Sh NAME
21.Nm mchars_alloc ,
22.Nm mchars_free ,
23.Nm mchars_num2char ,
24.Nm mchars_num2uc ,
25.Nm mchars_spec2cp ,

--- 28 unchanged lines hidden (view full) ---

54.Fc
55.Ft "const char *"
56.Fo mchars_spec2str
57.Fa "const struct mchars *table"
58.Fa "const char *name"
59.Fa "size_t sz"
60.Fa "size_t *rsz"
61.Fc
62.Ft "const char *"
63.Fn mchars_uc2str "int codepoint"
62.Sh DESCRIPTION
63These functions translate Unicode character numbers and
64.Xr roff 7
65character names into glyphs.
66See
67.Xr mandoc_char 7
68for a list of
69.Xr roff 7

--- 124 unchanged lines hidden (view full) ---

194.Xr mandoc 1
195.Fl Tascii
196output module use this function to render
197.Xr roff 7
198.Ic \e[ Ns Ar name Ns Ic \&]
199and
200.Ic \eC\(aq Ns Ar name Ns Ic \(aq
201escape sequences.
64.Sh DESCRIPTION
65These functions translate Unicode character numbers and
66.Xr roff 7
67character names into glyphs.
68See
69.Xr mandoc_char 7
70for a list of
71.Xr roff 7

--- 124 unchanged lines hidden (view full) ---

196.Xr mandoc 1
197.Fl Tascii
198output module use this function to render
199.Xr roff 7
200.Ic \e[ Ns Ar name Ns Ic \&]
201and
202.Ic \eC\(aq Ns Ar name Ns Ic \(aq
203escape sequences.
204.Pp
205The function
206.Fn mchars_uc2str
207performs a reverse lookup of the Unicode
208.Fa codepoint
209and returns an ASCII string representation, or the string
210.Qq <?>
211if none is available.
202.Sh FILES
203These funtions are implemented in the file
204.Pa chars.c .
205.Sh SEE ALSO
206.Xr mandoc 1 ,
207.Xr mandoc_escape 3 ,
208.Xr mandoc_char 7 ,
209.Xr roff 7
210.Sh HISTORY
211These functions and their predecessors have been available since the
212following mandoc versions:
213.Bl -column "mchars_num2char()" "1.11.3" "chars_num2char()" "1.10.10"
214.It Sy function Ta since Ta Sy predecessor Ta since
215.It Fn mchars_alloc Ta 1.11.3 Ta Fn ascii2htab Ta 1.5.3
216.It Fn mchars_free Ta 1.11.2 Ta Fn asciifree Ta 1.6.0
217.It Fn mchars_num2char Ta 1.11.2 Ta Fn chars_num2char Ta 1.10.10
218.It Fn mchars_num2uc Ta 1.11.3 Ta \(em Ta \(em
219.It Fn mchars_spec2cp Ta 1.11.2 Ta Fn chars_spec2cp Ta 1.10.5
220.It Fn mchars_spec2str Ta 1.11.2 Ta Fn a2ascii Ta 1.5.3
212.Sh FILES
213These funtions are implemented in the file
214.Pa chars.c .
215.Sh SEE ALSO
216.Xr mandoc 1 ,
217.Xr mandoc_escape 3 ,
218.Xr mandoc_char 7 ,
219.Xr roff 7
220.Sh HISTORY
221These functions and their predecessors have been available since the
222following mandoc versions:
223.Bl -column "mchars_num2char()" "1.11.3" "chars_num2char()" "1.10.10"
224.It Sy function Ta since Ta Sy predecessor Ta since
225.It Fn mchars_alloc Ta 1.11.3 Ta Fn ascii2htab Ta 1.5.3
226.It Fn mchars_free Ta 1.11.2 Ta Fn asciifree Ta 1.6.0
227.It Fn mchars_num2char Ta 1.11.2 Ta Fn chars_num2char Ta 1.10.10
228.It Fn mchars_num2uc Ta 1.11.3 Ta \(em Ta \(em
229.It Fn mchars_spec2cp Ta 1.11.2 Ta Fn chars_spec2cp Ta 1.10.5
230.It Fn mchars_spec2str Ta 1.11.2 Ta Fn a2ascii Ta 1.5.3
231.It Fn mchars_uc2str Ta 1.13.2 Ta \(em Ta \(em
221.El
222.Sh AUTHORS
223.An Kristaps Dzonsons Aq Mt kristaps@bsd.lv
224.An Ingo Schwarze Aq Mt schwarze@openbsd.org
232.El
233.Sh AUTHORS
234.An Kristaps Dzonsons Aq Mt kristaps@bsd.lv
235.An Ingo Schwarze Aq Mt schwarze@openbsd.org