No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gettext / gettext-tools / src / write-po.h
blob3d7ac905214f63e1b60f591d32adadcf680e433b
1 /* GNU gettext - internationalization aids
2 Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc.
4 This file was written by Peter Miller <millerp@canb.auug.org.au>
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free SoftwareFoundation,
18 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
20 #ifndef _WRITE_PO_H
21 #define _WRITE_PO_H
23 #include "message.h"
25 #include <stdbool.h>
26 #include <stdio.h>
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
34 /* These functions are used to output a #, flags line. */
35 extern const char *
36 make_format_description_string (enum is_format is_format,
37 const char *lang, bool debug);
38 extern bool
39 significant_format_p (enum is_format is_format);
42 /* These functions output parts of a message, as comments. */
43 extern void
44 message_print_comment (const message_ty *mp, FILE *fp);
45 extern void
46 message_print_comment_dot (const message_ty *mp, FILE *fp);
47 extern void
48 message_print_comment_filepos (const message_ty *mp, FILE *fp,
49 bool uniforum, size_t page_width);
50 extern void
51 message_print_comment_flags (const message_ty *mp, FILE *fp,
52 bool debug);
54 /* These functions set some parameters for use by 'msgdomain_list_print'. */
55 extern void
56 message_page_width_set (size_t width);
57 extern void
58 message_page_width_ignore (void);
59 extern void
60 message_print_style_indent (void);
61 extern void
62 message_print_style_uniforum (void);
63 extern void
64 message_print_style_escape (bool flag);
65 extern void
66 message_print_syntax_properties (void);
67 extern void
68 message_print_syntax_stringtable (void);
70 /* Output MDLP into a PO file with the given FILENAME, according to the
71 parameters set by the functions above. */
72 extern void
73 msgdomain_list_print (msgdomain_list_ty *mdlp,
74 const char *filename,
75 bool force, bool debug);
77 /* Sort MDLP destructively according to the given criterion. */
78 extern void
79 msgdomain_list_sort_by_msgid (msgdomain_list_ty *mdlp);
80 extern void
81 msgdomain_list_sort_by_filepos (msgdomain_list_ty *mdlp);
84 #ifdef __cplusplus
86 #endif
89 #endif /* _WRITE_PO_H */