>From b6089c1de97b254af8f47026b4e33552491366ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel=20Arruga=20Vivas?= Date: Mon, 6 May 2019 17:22:36 +0200 Subject: [PATCH 15/15] doc: Add format type API * gettext-tools/doc/gettext.texi (Format Type API): New subsection. Add po_format_list and po_format_pretty_name documentation. --- gettext-tools/doc/gettext.texi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gettext-tools/doc/gettext.texi b/gettext-tools/doc/gettext.texi index 6ec370cf3..53cb1a119 100644 --- a/gettext-tools/doc/gettext.texi +++ b/gettext-tools/doc/gettext.texi @@ -5280,6 +5280,7 @@ defined in a library called @samp{libgettextpo}. * po_message_t API:: The basic units of the file * PO Header Entry API:: Meta information of the file * po_filepos_t API:: References to the sources +* Format Type API:: Supported format types @end menu The following example shows code how these functions can be used. Error @@ -5690,6 +5691,19 @@ value @code{(size_t)(-1)} for @var{start_line} denotes that the line number is not available. @end deftypefun address@hidden Format Type API address@hidden Format Type API + address@hidden {const char * const *} po_format_list (void) +Return a @code{NULL} terminated array of the supported format types. address@hidden deftypefun + address@hidden {const char *} po_format_pretty_name (const char address@hidden) +Return the pretty name associated with @var{format_type}. For example, +it returns ``C#'' when @var{format_type} is ``csharp_format''. +Return @code{NULL} if @var{format_type} is not a supported format type. address@hidden deftypefun + @node Binaries @chapter Producing Binary MO Files -- 2.21.0