KVIrc  4.9.2
DeveloperAPIs
Classes | Macros | Functions | Variables
KviMessageCatalogue.cpp File Reference
#include "KviMessageCatalogue.h"
#include "KviFile.h"
#include "KviByteOrder.h"
#include "KviCString.h"
#include "KviMemory.h"
#include "KviLocale.h"
#include "KviPointerHashTable.h"
#include "KviTranslationEntry.h"
#include <QTextCodec>
#include <stdio.h>

Classes

struct  GnuMoFileHeader
 
struct  GnuMoStringDescriptor
 

Macros

#define KVI_LOCALE_MAGIC   0x950412de
 
#define KVI_LOCALE_MAGIC_SWAPPED   0xde120495
 
#define KVI_SWAP_IF_NEEDED(flag, value)   (flag ? KviByteOrder::swap32(value) : (value))
 
#define MO_REVISION_NUMBER   0
 

Functions

int kvi_getFirstBiggerPrime (int iNumber)
 

Variables

static int somePrimeNumbers [90]
 

Macro Definition Documentation

#define KVI_LOCALE_MAGIC   0x950412de
#define KVI_LOCALE_MAGIC_SWAPPED   0xde120495
#define KVI_SWAP_IF_NEEDED (   flag,
  value 
)    (flag ? KviByteOrder::swap32(value) : (value))
#define MO_REVISION_NUMBER   0

Function Documentation

int kvi_getFirstBiggerPrime ( int  iNumber)

References somePrimeNumbers.

Referenced by KviMessageCatalogue::load().

Variable Documentation

int somePrimeNumbers[90]
static
Initial value:
= {
257, 521, 769, 1031, 1087, 1091, 1103, 1117, 1123, 1151,
1163, 1171, 1181, 1193, 1201, 1213, 1217, 1223, 1229, 1231,
1237, 1249, 1259, 1277, 1283, 1289, 1291, 1297, 1307, 1319,
1321, 1327, 1361, 1367, 1373, 1381, 1399, 1409, 1423, 1433,
1447, 1459, 1471, 1481, 1493, 1511, 1523, 1531, 1543, 1553,
1567, 1571, 1583, 1597, 1609, 1619, 1627, 1637, 1657, 1667,
1693, 1709, 1721, 1733, 1741, 1753, 1777, 1789, 1811, 1831,
1907, 2069, 2111, 2221, 2309, 2441, 2531, 2617, 2731, 2837,
2903, 3121, 3329, 3331, 3767, 4127, 5051, 6089, 7039, 9973
}

Referenced by kvi_getFirstBiggerPrime().