(root)/
gettext-0.22.4/
gettext-tools/
src/
filters.h
       1  /* Recoding functions.
       2     Copyright (C) 2006, 2014 Free Software Foundation, Inc.
       3     Written by Bruno Haible <bruno@clisp.org>, 2006.
       4  
       5     This program is free software: you can redistribute it and/or modify
       6     it under the terms of the GNU General Public License as published by
       7     the Free Software Foundation; either version 3 of the License, or
       8     (at your option) any later version.
       9  
      10     This program is distributed in the hope that it will be useful,
      11     but WITHOUT ANY WARRANTY; without even the implied warranty of
      12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      13     GNU General Public License for more details.
      14  
      15     You should have received a copy of the GNU General Public License
      16     along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
      17  
      18  #include <stddef.h>
      19  
      20  #ifdef __cplusplus
      21  extern "C" {
      22  #endif
      23  
      24  /* Convert a string INPUT of INPUT_LEN bytes containing Serbian input
      25     to Latin script (not Latin language :-)), converting Cyrillic letters to
      26     Latin letters.
      27     Store the freshly allocated result in *OUTPUT_P and its length (in bytes)
      28     in *OUTPUT_LEN_P.
      29     Input and output are in UTF-8 encoding.  */
      30  extern void serbian_to_latin (const char *input, size_t input_len,
      31                                char **output_p, size_t *output_len_p);
      32  
      33  /* Convert a string INPUT of INPUT_LEN bytes, converting ASCII
      34     quotations to Unicode quotations.
      35     Store the freshly allocated result in *OUTPUT_P and its length (in bytes)
      36     in *OUTPUT_LEN_P.
      37     Input and output are in UTF-8 encoding.  */
      38  extern void ascii_quote_to_unicode (const char *input, size_t input_len,
      39                                      char **output_p, size_t *output_len_p);
      40  
      41  /* Convert a string INPUT of INPUT_LEN bytes, converting ASCII
      42     quotations to Unicode quotations, adding bold escape sequence.
      43     Store the freshly allocated result in *OUTPUT_P and its length (in bytes)
      44     in *OUTPUT_LEN_P.
      45     Input and output are in UTF-8 encoding.  */
      46  extern void ascii_quote_to_unicode_bold (const char *input, size_t input_len,
      47                                           char **output_p, size_t *output_len_p);
      48  
      49  #ifdef __cplusplus
      50  }
      51  #endif
      52