summaryrefslogtreecommitdiffstats
path: root/contrib/mdocml/mchars_alloc.3
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-12-02 23:24:57 +0000
committerbapt <bapt@FreeBSD.org>2014-12-02 23:24:57 +0000
commit919f2a28755126f55b458d6553ac5e10b76203b3 (patch)
tree6b285eca5de51692bcaade66a629a2b84eadb8c7 /contrib/mdocml/mchars_alloc.3
parentd24ff3fdf2f10c9b05c568b96812b7560b5c652a (diff)
parente00686f8f18c8c3eb3a800468a031699ed0bbc8f (diff)
downloadFreeBSD-src-919f2a28755126f55b458d6553ac5e10b76203b3.zip
FreeBSD-src-919f2a28755126f55b458d6553ac5e10b76203b3.tar.gz
Update to mandoc cvs version as of 20141201
- Compatiblity with existing manpages has been improved - Now support ".so" directive with compressed manpages (which fixes a regression we have since we have new man(1))
Diffstat (limited to 'contrib/mdocml/mchars_alloc.3')
-rw-r--r--contrib/mdocml/mchars_alloc.315
1 files changed, 13 insertions, 2 deletions
diff --git a/contrib/mdocml/mchars_alloc.3 b/contrib/mdocml/mchars_alloc.3
index 8c3f853..eba81b5 100644
--- a/contrib/mdocml/mchars_alloc.3
+++ b/contrib/mdocml/mchars_alloc.3
@@ -1,4 +1,4 @@
-.\" $Id: mchars_alloc.3,v 1.1 2014/08/05 05:48:56 schwarze Exp $
+.\" $Id: mchars_alloc.3,v 1.2 2014/10/26 18:07:28 schwarze Exp $
.\"
.\" Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: August 5 2014 $
+.Dd $Mdocdate: October 26 2014 $
.Dt MCHARS_ALLOC 3
.Os
.Sh NAME
@@ -59,6 +59,8 @@
.Fa "size_t sz"
.Fa "size_t *rsz"
.Fc
+.Ft "const char *"
+.Fn mchars_uc2str "int codepoint"
.Sh DESCRIPTION
These functions translate Unicode character numbers and
.Xr roff 7
@@ -199,6 +201,14 @@ output module use this function to render
and
.Ic \eC\(aq Ns Ar name Ns Ic \(aq
escape sequences.
+.Pp
+The function
+.Fn mchars_uc2str
+performs a reverse lookup of the Unicode
+.Fa codepoint
+and returns an ASCII string representation, or the string
+.Qq <?>
+if none is available.
.Sh FILES
These funtions are implemented in the file
.Pa chars.c .
@@ -218,6 +228,7 @@ following mandoc versions:
.It Fn mchars_num2uc Ta 1.11.3 Ta \(em Ta \(em
.It Fn mchars_spec2cp Ta 1.11.2 Ta Fn chars_spec2cp Ta 1.10.5
.It Fn mchars_spec2str Ta 1.11.2 Ta Fn a2ascii Ta 1.5.3
+.It Fn mchars_uc2str Ta 1.13.2 Ta \(em Ta \(em
.El
.Sh AUTHORS
.An Kristaps Dzonsons Aq Mt kristaps@bsd.lv
OpenPOWER on IntegriCloud