GCC Middle and Back End API Reference
intl.cc File Reference
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "intl.h"
Include dependency graph for intl.cc:

Functions

const charfake_ngettext (const char *singular, const char *plural, unsigned long n)
 
charget_spaces (const char *str)
 

Variables

const charopen_quote = "'"
 
const charclose_quote = "'"
 
const charlocale_encoding = NULL
 
bool locale_utf8 = false
 

Function Documentation

◆ fake_ngettext()

const char * fake_ngettext ( const char * singular,
const char * plural,
unsigned long n )

References ggc_alloc().

◆ get_spaces()

char * get_spaces ( const char * str)
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.   

References gcc_gettext_width, and ggc_alloc().

Variable Documentation

◆ close_quote

const char* close_quote = "'"
Closing quotation mark for diagnostics.   

Referenced by pp_end_quote(), and pp_format().

◆ locale_encoding

const char* locale_encoding = NULL
The name of the locale encoding.   

Referenced by identifier_to_locale().

◆ locale_utf8

bool locale_utf8 = false
Whether the locale is using UTF-8.   

Referenced by identifier_to_locale().

◆ open_quote

const char* open_quote = "'"
Message translation utilities.
   Copyright (C) 2001-2024 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 pp_begin_quote(), and pp_format().