-
Notifications
You must be signed in to change notification settings - Fork 6
/
ctranslit.h
48 lines (42 loc) · 1.2 KB
/
ctranslit.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*********************** Information *************************\
| $HeadURL$
|
| Author: Jo2003
|
| Begin: 08.02.2010 / 10:50:35
|
| Last edited by: $Author$
|
| $Id$
\*************************************************************/
#ifndef __020810__CTRANSLIT_H
#define __020810__CTRANSLIT_H
#include <QtCore>
#include <QString>
#include <QTextStream>
#include <QChar>
#include <QMap>
// max. length of phrase ...
#define MAX_LAT2CYR_LEN 4
/********************************************************************\
| Class: CTranslit
| Date: 08.02.2010 / 11:00:28
| Author: Jo2003
| Description: class to make translit between latin and cyrillic
|
\********************************************************************/
class CTranslit
{
public:
CTranslit();
~CTranslit ();
QString CyrToLat (const QString &str, bool fileName = true);
QString LatToCyr (const QString &str, bool fileName = true);
private:
QMap<QString, QString> mCyr2Lat;
QMap<QString, QString> mLat2Cyr;
};
#endif /* __020810__CTRANSLIT_H */
/************************* History ***************************\
| $Log$
\*************************************************************/