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

Go to the source code of this file.

Functions

void gcc_init_libintl (void)
size_t gcc_gettext_width (const char *)
const char * fake_ngettext (const char *singular, const char *plural, unsigned long int n)
char * get_spaces (const char *)

Variables

const char * open_quote
const char * close_quote
const char * locale_encoding
bool locale_utf8

Function Documentation

const char* fake_ngettext ( const char *  singular,
const char *  plural,
unsigned long int  n 
)
size_t gcc_gettext_width ( const char *  )
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.   

References close_quote, locale_encoding, locale_utf8, and open_quote.

Referenced by general_init(), main(), and print_usage().

char* get_spaces ( const char *  )

Variable Documentation

const char* close_quote
Closing quotation mark for diagnostics.   

Referenced by gcc_init_libintl(), and pp_format().

const char* locale_encoding
The name of the locale encoding.   

Referenced by gcc_init_libintl(), and identifier_to_locale().

bool locale_utf8
Whether the locale is using UTF-8.   

Referenced by gcc_init_libintl(), and identifier_to_locale().

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.   

Referenced by gcc_init_libintl(), and pp_format().