GCC Middle and Back End API Reference
intl.c File Reference

Functions

void gcc_init_libintl ()
size_t gcc_gettext_width ()
const char * fake_ngettext ()
char * get_spaces ()

Variables

const char * open_quote = "'"
const char * close_quote = "'"
const char * locale_encoding = NULL
bool locale_utf8 = false

Function Documentation

const char* fake_ngettext ( )

References gcc_gettext_width(), len, and memset().

size_t gcc_gettext_width ( )
   Returns the width in columns of MSGSTR, which came from gettext.
   This is for indenting subsequent output.  
   We don't have any way of knowing how wide the string is.  Guess
   the length of the string.  

References strlen().

Referenced by fake_ngettext().

void gcc_init_libintl ( void  )
   Initialize the translation library for GCC.  This performs the
   appropriate sequence of calls - setlocale, bindtextdomain,
   textdomain.  LC_CTYPE determines the character set used by the
   terminal, so it has be set to output messages correctly.  
     Opening quotation mark.  
     Closing quotation mark.  
         Untranslated quotes that it may be possible to replace with
         U+2018 and U+2019; but otherwise use "'" instead of "`" as
         opening quote.  

Referenced by main().

char* get_spaces ( )
   Return the indent for successive lines, using the width of
   the STR.  STR must have been translated already.  The string
   must be freed by the caller.  

Variable Documentation

const char* close_quote = "'"
   Closing quotation mark for diagnostics.  
const char* locale_encoding = NULL
   The name of the locale encoding.  
bool locale_utf8 = false
   Whether the locale is using UTF-8.  

Referenced by decode_utf8_char().

const char* open_quote = "'"
@verbatim 

Message translation utilities. Copyright (C) 2001-2013 Free Software Foundation, Inc.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.

GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see http://www.gnu.org/licenses/.

   Opening quotation mark for diagnostics.