~ubuntu-branches/ubuntu/raring/kbibtex/raring

« back to all changes in this revision

Viewing changes to src/iso6937converter.h

  • Committer: Package Import Robot
  • Author(s): Michael Hanke
  • Date: 2011-07-18 09:29:48 UTC
  • mfrom: (1.1.6) (2.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20110718092948-ksxjmg7kdfamolmg
Tags: 0.3-1
* First upstream release for KDE4 (Closes: #634255). A number of search
  engines are still missing, in comparison to the 0.2 series.
* Bumped Standards-Version to 3.9.2, no changes necessary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
    copyright            : (C) 2006 by Robby Stephenson
3
 
    email                : robby@periapsis.org
4
 
 ***************************************************************************/
5
 
 
6
 
/***************************************************************************
7
 
 *                                                                         *
8
 
 *   This file has been modified to match the requirements of KBibTeX.     *
9
 
 *   In case of problems or bugs arising from this implementation, please  *
10
 
 *   contact the KBibTeX team first.                                       *
11
 
 *                             Thomas Fischer <fischer@unix-ag.uni-kl.de>  *
12
 
 *                                                                         *
13
 
 ***************************************************************************/
14
 
 
15
 
/***************************************************************************
16
 
 *                                                                         *
17
 
 *   This program is free software; you can redistribute it and/or modify  *
18
 
 *   it under the terms of version 2 of the GNU General Public License as  *
19
 
 *   published by the Free Software Foundation;                            *
20
 
 *                                                                         *
21
 
 ***************************************************************************/
22
 
 
23
 
#ifndef KBIBTEX_ISO6937CONVERTER_H
24
 
#define KBIBTEX_ISO6937CONVERTER_H
25
 
 
26
 
class QCString;
27
 
class QString;
28
 
class QChar;
29
 
 
30
 
namespace KBibTeX {
31
 
 
32
 
/**
33
 
 * @author Robby Stephenson
34
 
 */
35
 
class Iso6937Converter {
36
 
public:
37
 
  static QString toUtf8(const QCString& text);
38
 
 
39
 
private:
40
 
  static bool hasNext(unsigned int pos, unsigned int len);
41
 
  static bool isAscii(unsigned char c);
42
 
  static bool isCombining(unsigned char c);
43
 
 
44
 
  static QChar getChar(unsigned char c);
45
 
  static QChar getCombiningChar(unsigned int c);
46
 
};
47
 
 
48
 
} // end namespace
49
 
 
50
 
#endif