(root)/
man-db-2.12.0/
lib/
encodings.h
       1  /*
       2   * encodings.h: Interface to locale and encoding handling for man
       3   *
       4   * Copyright (C) 2003, 2004, 2006, 2007, 2008 Colin Watson.
       5   *
       6   * This file is part of man-db.
       7   *
       8   * man-db is free software; you can redistribute it and/or modify it
       9   * under the terms of the GNU General Public License as published by
      10   * the Free Software Foundation; either version 2 of the License, or
      11   * (at your option) any later version.
      12   *
      13   * man-db is distributed in the hope that it will be useful, but
      14   * WITHOUT ANY WARRANTY; without even the implied warranty of
      15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      16   * GNU General Public License for more details.
      17   *
      18   * You should have received a copy of the GNU General Public License
      19   * along with man-db; if not, write to the Free Software Foundation,
      20   * Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
      21   */
      22  
      23  #include <stdbool.h>
      24  
      25  const char *get_groff_preconv (void);
      26  char *get_page_encoding (const char *lang);
      27  const char *get_source_encoding (const char *lang);
      28  const char *get_canonical_charset_name (const char *charset);
      29  const char *get_locale_charset (void);
      30  char *find_charset_locale (const char *charset);
      31  const char *get_default_device (const char *locale_charset,
      32  				const char *source_encoding);
      33  bool is_roff_device (const char *device);
      34  const char *get_roff_encoding (const char *device,
      35  			       const char *source_encoding);
      36  const char *get_output_encoding (const char *device);
      37  const char *get_less_charset (const char *locale_charset);
      38  const char *get_jless_charset (const char *locale_charset);