Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

MagiC Namespace Reference

This file is part of the MagiC++ library. More...


Functions

String i18n (const char *text)
String strformat (const char *format,...)


Detailed Description

This file is part of the MagiC++ library.

* * Copyright (C) 1998-2002 Marko Grönroos <magi@iki.fi> * *

* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; see the file COPYING.LIB. If * not, write to the Free Software Foundation, Inc., 59 Temple Place *


Function Documentation

String i18n const char *    text [inline]
 

Translates a string to current locale.

Note:
The GNU gettext preparation must have been done properly for the sources, and the translation files must be located at correct location.
Returns:
Returns a translated version of the given string. If no translation is available for the current language, the same string is returned unchanged.
Parameters:
text  Text string to translate.

Definition at line 59 of file mi18n.h.

Referenced by File::at(), Buffer::Buffer(), checkDevice(), File::close(), File::exists(), File::File(), File::flush(), File::getch(), File::open(), File::putch(), File::readLine(), File::seek(), File::size(), File::ungetch(), and File::writeBlock().

String strformat const char *    sformat,
...   
 

Prints to string with C-style formatting.

Parameters:
sformat  Formatting, as in C printf.

Definition at line 1323 of file mstring.cc.


Generated on Thu Feb 10 20:06:43 2005 for LibMagiC by doxygen1.2.18