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

« back to all changes in this revision

Viewing changes to src/iso5426converter.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_ISO5426CONVERTER_H
24
 
#define KBIBTEX_ISO5426CONVERTER_H
25
 
 
26
 
class QCString;
27
 
class QString;
28
 
class QChar;
29
 
 
30
 
#include <qglobal.h>
31
 
 
32
 
namespace KBibTeX {
33
 
 
34
 
/**
35
 
 * @author Robby Stephenson
36
 
 */
37
 
class Iso5426Converter {
38
 
public:
39
 
  static QString toUtf8(const QCString& text);
40
 
 
41
 
private:
42
 
  static bool hasNext(uint pos, uint len);
43
 
  static bool isAscii(uchar c);
44
 
  static bool isCombining(uchar c);
45
 
 
46
 
  static QChar getChar(uchar c);
47
 
  static QChar getCombiningChar(uint i);
48
 
};
49
 
 
50
 
} // end namespace
51
 
 
52
 
#endif