KDECore
klocale.cpp File Reference
#include <config.h>#include <stdlib.h>#include <qtextcodec.h>#include <qfile.h>#include <qprinter.h>#include <qdatetime.h>#include <qfileinfo.h>#include <qregexp.h>#include "kcatalogue.h"#include "kglobal.h"#include "kstandarddirs.h"#include "ksimpleconfig.h"#include "kinstance.h"#include "kconfig.h"#include "kdebug.h"#include "kcalendarsystem.h"#include "kcalendarsystemfactory.h"#include "klocale.h"
Include dependency graph for klocale.cpp:

Go to the source code of this file.
Defines | |
| #define | EXPECT_LENGTH(x) |
| #define | read3ConfigBoolEntry(key, default, save) |
| #define | readConfigBoolEntry(key, default, save) |
| #define | readConfigEntry(key, default, save) |
| #define | readConfigNumEntry(key, default, save, type) |
Functions | |
| static void | _inc_by_one (QString &str, int position) |
| static void | _insertSeparator (QString &str, const QString &separator, const QString &decimalSymbol) |
| static void | _round (QString &str, int precision) |
| QString | i18n (const char *singular, const char *plural, unsigned long n) |
| QString | i18n (const char *index, const char *text) |
| QString | i18n (const char *text) |
| static void | put_it_in (QChar *buffer, uint &index, int number) |
| static void | put_it_in (QChar *buffer, uint &index, const QString &s) |
| static QString | put_n_in (const QString &orig, unsigned long n) |
| static int | readInt (const QString &str, uint &pos) |
Variables | |
| static const char * | maincatalogue = 0 |
| static const char *const | SYSTEM_MESSAGES = "kdelibs" |
| static KLocale * | this_klocale = 0 |
Define Documentation
| #define EXPECT_LENGTH | ( | x | ) |
Value:
if (forms.count() != x) { \ kdError() << "translation of \"" << singular << "\" doesn't contain " << x << " different plural forms as expected\n"; \ return QString( "BROKEN TRANSLATION %1" ).arg( singular ); }
Definition at line 789 of file klocale.cpp.
| #define read3ConfigBoolEntry | ( | key, | |||
| default, | |||||
| save | ) |
| #define readConfigBoolEntry | ( | key, | |||
| default, | |||||
| save | ) |
| #define readConfigEntry | ( | key, | |||
| default, | |||||
| save | ) |
| #define readConfigNumEntry | ( | key, | |||
| default, | |||||
| save, | |||||
| type | ) |
Function Documentation
| static void _inc_by_one | ( | QString & | str, | |
| int | position | |||
| ) | [static] |
Definition at line 1198 of file klocale.cpp.
| static void _insertSeparator | ( | QString & | str, | |
| const QString & | separator, | |||
| const QString & | decimalSymbol | |||
| ) | [static] |
Definition at line 1100 of file klocale.cpp.
| static void _round | ( | QString & | str, | |
| int | precision | |||
| ) | [static] |
Definition at line 1244 of file klocale.cpp.
Definition at line 1977 of file klocale.cpp.
| QString i18n | ( | const char * | index, | |
| const char * | text | |||
| ) | [related] |
Definition at line 1969 of file klocale.cpp.
| QString i18n | ( | const char * | text | ) | [related] |
Definition at line 1961 of file klocale.cpp.
| static void put_it_in | ( | QChar * | buffer, | |
| uint & | index, | |||
| int | number | |||
| ) | [inline, static] |
Definition at line 1093 of file klocale.cpp.
Definition at line 1087 of file klocale.cpp.
Definition at line 779 of file klocale.cpp.
| static int readInt | ( | const QString & | str, | |
| uint & | pos | |||
| ) | [static] |
helper function to read integers
- Parameters:
-
str pos the position to start at. It will be updated when we parse it.
- Returns:
- the integer read in the string, or -1 if no string
Definition at line 1568 of file klocale.cpp.
Variable Documentation
const char* maincatalogue = 0 [static] |
Definition at line 52 of file klocale.cpp.
const char* const SYSTEM_MESSAGES = "kdelibs" [static] |
Definition at line 50 of file klocale.cpp.
KLocale* this_klocale = 0 [static] |
Definition at line 81 of file klocale.cpp.
KDE 3.5 API Reference