Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

numberh.cpp File Reference

#include <metatranslator.h>
#include <qmemarray.h>
#include <qcstring.h>
#include <qmap.h>
#include <qstringlist.h>
#include <ctype.h>

Include dependency graph for numberh.cpp:

Go to the source code of this file.

Typedefs

typedef QMap< QCString, MetaTranslatorMessageTMM
typedef QValueList< MetaTranslatorMessageTML

Functions

static bool isDigitFriendly (int c)
static int numberLength (const char *s)
static QCString zeroKey (const char *key)
static QString translationAttempt (const QString &oldTranslation, const char *oldSource, const char *newSource)
void applyNumberHeuristic (MetaTranslator *tor, bool verbose)


Typedef Documentation

typedef QValueList<MetaTranslatorMessage> TML
 

Definition at line 37 of file numberh.cpp.

typedef QMap<QCString, MetaTranslatorMessage> TMM
 

Definition at line 36 of file numberh.cpp.


Function Documentation

void applyNumberHeuristic MetaTranslator tor,
bool  verbose
 

Definition at line 209 of file numberh.cpp.

References all, QMap< Key, T >::begin(), QValueList< T >::begin(), QMap< Key, T >::end(), QValueList< T >::end(), QMap< Key, T >::find(), MetaTranslator::insert(), QMap< Key, T >::insert(), MetaTranslator::messages(), qstrcmp(), t, translationAttempt(), u, MetaTranslatorMessage::Unfinished, and zeroKey().

Referenced by merge().

static bool isDigitFriendly int  c  )  [static]
 

Definition at line 39 of file numberh.cpp.

Referenced by numberLength().

static int numberLength const char *  s  )  [static]
 

Definition at line 44 of file numberh.cpp.

References i, and isDigitFriendly().

Referenced by translationAttempt(), and zeroKey().

static QString translationAttempt const QString oldTranslation,
const char *  oldSource,
const char *  newSource
[static]
 

Definition at line 89 of file numberh.cpp.

References QValueList< T >::append(), FALSE, i, QString::length(), numberLength(), p, qstrlen(), TRUE, QString::truncate(), and zeroKey().

Referenced by applyNumberHeuristic().

static QCString zeroKey const char *  key  )  [static]
 

Definition at line 63 of file numberh.cpp.

References FALSE, i, len, numberLength(), and TRUE.

Referenced by applyNumberHeuristic(), and translationAttempt().


Generated on Sat Nov 5 16:31:50 2005 for OPIE by  doxygen 1.4.2